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

Function diff_tree_oid

tree-diff.c:717–731  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

715}
716
717void diff_tree_oid(const struct object_id *old_oid,
718 const struct object_id *new_oid,
719 const char *base_str, struct diff_options *opt)
720{
721 struct strbuf base;
722
723 strbuf_init(&base, PATH_MAX);
724 strbuf_addstr(&base, base_str);
725
726 ll_diff_tree_oid(old_oid, new_oid, &base, opt);
727 if (!*base_str && opt->flags.follow_renames && diff_might_be_rename())
728 try_to_follow_renames(old_oid, new_oid, &base, opt);
729
730 strbuf_release(&base);
731}
732
733void diff_root_tree_oid(const struct object_id *new_oid,
734 const char *base,

Callers 15

queue_diffsFunction · 0.85
diff_root_tree_oidFunction · 0.85
find_originFunction · 0.85
find_renameFunction · 0.85
find_copy_in_parentFunction · 0.85
rev_compare_treeFunction · 0.85
rev_same_tree_as_emptyFunction · 0.85
pick_commitsFunction · 0.85
find_paths_genericFunction · 0.85
diff_tree_combinedFunction · 0.85
do_remerge_diffFunction · 0.85

Calls 6

strbuf_initFunction · 0.85
strbuf_addstrFunction · 0.85
ll_diff_tree_oidFunction · 0.85
try_to_follow_renamesFunction · 0.85
strbuf_releaseFunction · 0.85
diff_might_be_renameFunction · 0.70

Tested by

no test coverage detected