#NEWLINE# def get_branches_containing_commit( commit_hash ) : #NEWLINE# #INDENT# 'Returns a list of all branches containing the specified commit.' #NEWLINE# git_command = [ 'git' , 'branch' , '--contains' , commit_hash ] #NEWLINE# branches = execute ( git_command ) . replace ( '*' , '' ) . split ( '\n' ) #NEWLINE# return [ branch . strip ( ) for branch in branches ]