Yes, the method is straightforward but it's long. Would like to see methods where it's clear from the method name what's going on.

def revStr = getRevision()
def commitId = getCommitId()
getModifiedFiles()