def tree_lookup_path(lookup_obj, root_sha, path):
 tree = lookup_obj(root_sha)
 if (not isinstance(tree, Tree)):
  raise NotTreeError(root_sha)
 return tree.lookup_path(lookup_obj, path)

def tree_lookup_path ( lookup_obj , root_sha , path ) : tree = lookup_obj ( root_sha ) if ( not isinstance ( tree , Tree ) ) : raise NotTreeError ( root_sha ) return tree . lookup_path ( lookup_obj , path )
look up an object in a git tree .