MCPcopy Index your code
hub / github.com/git/git / lookup_tree

Function lookup_tree

tree.c:167–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167struct tree *lookup_tree(struct repository *r, const struct object_id *oid)
168{
169 struct object *obj = lookup_object(r, oid);
170 if (!obj)
171 return create_object(r, oid, alloc_tree_node(r));
172 return object_as_type(obj, OBJ_TREE, 0);
173}
174
175int parse_tree_buffer(struct tree *item, void *buffer, unsigned long size)
176{

Callers 15

parse_tag_bufferFunction · 0.85
shift_tree_objectFunction · 0.85
merge_ort_internalFunction · 0.85
prime_cache_tree_recFunction · 0.85
tree_is_completeFunction · 0.85
process_treeFunction · 0.85
load_tree_for_commitFunction · 0.85
add_recent_objectFunction · 0.85
add_children_by_pathFunction · 0.85

Calls 4

lookup_objectFunction · 0.85
create_objectFunction · 0.85
alloc_tree_nodeFunction · 0.85
object_as_typeFunction · 0.85

Tested by

no test coverage detected