def getLogMessage(commitSHA):
 output = check_output(['git', 'log', '--format=%B', '-n', '1', commitSHA])
 return output.strip()

def getLogMessage ( commitSHA ) : output = check_output ( [ 'git' , 'log' , '--format=%B' , '-n' , '1' , commitSHA ] ) return output . strip ( )
get the log message for a given commit hash .