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

Function read_tree

tree.c:88–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88int read_tree(struct repository *r,
89 struct tree *tree,
90 const struct pathspec *pathspec,
91 read_tree_fn_t fn, void *context)
92{
93 struct strbuf sb = STRBUF_INIT;
94 int ret = read_tree_at(r, tree, &sb, 0, pathspec, fn, context);
95 strbuf_release(&sb);
96 return ret;
97}
98
99int base_name_compare(const char *name1, size_t len1, int mode1,
100 const char *name2, size_t len2, int mode2)

Callers 6

write_archive_entriesFunction · 0.85
path_existsFunction · 0.85
overlay_tree_on_indexFunction · 0.85
cmd_ls_treeFunction · 0.85
cmd_showFunction · 0.85
read_tree_someFunction · 0.85

Calls 2

read_tree_atFunction · 0.85
strbuf_releaseFunction · 0.85

Tested by

no test coverage detected