MCPcopy Create free account
hub / github.com/git/git / fill_tree_descriptor

Function fill_tree_descriptor

tree-walk.c:86–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86void *fill_tree_descriptor(struct repository *r,
87 struct tree_desc *desc,
88 const struct object_id *oid)
89{
90 size_t size = 0;
91 void *buf = NULL;
92
93 if (oid) {
94 buf = odb_read_object_peeled(r->objects, oid, OBJ_TREE, &size, NULL);
95 if (!buf)
96 die(_("unable to read tree (%s)"), oid_to_hex(oid));
97 }
98 init_tree_desc(desc, oid, buf, size);
99 return buf;
100}
101
102static void entry_clear(struct name_entry *a)
103{

Callers 12

handle_deferred_entriesFunction · 0.85
ll_diff_tree_pathsFunction · 0.85
traverse_trees_recursiveFunction · 0.85
merged_sparse_dirFunction · 0.85
load_subtreeFunction · 0.85
reset_headFunction · 0.85
do_resetFunction · 0.85
traverse_tree_submodulesFunction · 0.85
reset_indexFunction · 0.85
unresolved_directoryFunction · 0.85
get_tree_descriptorFunction · 0.85

Calls 4

odb_read_object_peeledFunction · 0.85
oid_to_hexFunction · 0.85
init_tree_descFunction · 0.85
dieFunction · 0.70

Tested by

no test coverage detected