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

Function diff_tree_commit_oid

builtin/diff-tree.c:17–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15static struct rev_info log_tree_opt;
16
17static int diff_tree_commit_oid(const struct object_id *oid)
18{
19 struct commit *commit = lookup_commit_reference(the_repository, oid);
20 if (!commit)
21 return -1;
22 return log_tree_commit(&log_tree_opt, commit);
23}
24
25/* Diff one or more commits. */
26static int stdin_diff_commit(struct commit *commit, const char *p)

Callers 1

cmd_diff_treeFunction · 0.85

Calls 2

lookup_commit_referenceFunction · 0.85
log_tree_commitFunction · 0.85

Tested by

no test coverage detected