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

Function show_interdiff

diff-lib.c:709–727  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

707}
708
709void show_interdiff(const struct object_id *oid1, const struct object_id *oid2,
710 int indent, struct diff_options *diffopt)
711{
712 struct diff_options opts;
713 struct strbuf prefix = STRBUF_INIT;
714
715 memcpy(&opts, diffopt, sizeof(opts));
716 opts.output_format = DIFF_FORMAT_PATCH;
717 opts.output_prefix = idiff_prefix_cb;
718 strbuf_addchars(&prefix, ' ', indent);
719 opts.output_prefix_data = prefix.buf;
720 diff_setup_done(&opts);
721
722 diff_tree_oid(oid1, oid2, "", &opts);
723 diffcore_std(&opts);
724 diff_flush(&opts);
725
726 strbuf_release(&prefix);
727}

Callers 2

show_diff_of_diffFunction · 0.85
make_cover_letterFunction · 0.85

Calls 6

strbuf_addcharsFunction · 0.85
diff_setup_doneFunction · 0.85
diff_tree_oidFunction · 0.85
diffcore_stdFunction · 0.85
diff_flushFunction · 0.85
strbuf_releaseFunction · 0.85

Tested by

no test coverage detected