#NEWLINE# def tree( commit ) : #NEWLINE# #INDENT# '\n    Return the tree in the given commit or None.\n    ' #NEWLINE# ( status , stdout ) = git ( 'show' , '--pretty=format:%T' , commit ) #NEWLINE# if ( 0 != status ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# return stdout [ 0 : 40 ]