def parseDiffTreeEntry(entry):
 match = diffTreePattern().next().match(entry)
 if match:
  return {'src_mode': match.group(1), 'dst_mode': match.group(2), 'src_sha1': match.group(3), 'dst_sha1': match.group(4), 'status': match.group(5), 'status_score': match.group(6), 'src': match.group(7), 'dst': match.group(10)}
 return None

def parseDiffTreeEntry ( entry ) : match = diffTreePattern ( ) . next ( ) . match ( entry ) if match : return { 'src_mode' : match . group ( 1 ) , 'dst_mode' : match . group ( 2 ) , 'src_sha1' : match . group ( 3 ) , 'dst_sha1' : match . group ( 4 ) , 'status' : match . group ( 5 ) , 'status_score' : match . group ( 6 ) , 'src' : match . group ( 7 ) , 'dst' : match . group ( 10 ) } return None
parses a single diff tree entry into its component elements .