#NEWLINE# def git_cmp( t1 , t2 ) : #NEWLINE# #INDENT# ( a , b ) = ( t1 [ 2 ] , t2 [ 2 ] ) #NEWLINE# ( len_a , len_b ) = ( len ( a ) , len ( b ) ) #NEWLINE# min_len = min ( len_a , len_b ) #NEWLINE# min_cmp = cmp ( a [ : min_len ] , b [ : min_len ] ) #NEWLINE# if min_cmp : #NEWLINE# #INDENT# return min_cmp #NEWLINE# #UNINDENT# return ( len_a - len_b )