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

Function xdi_diff

xdiff-interface.c:119–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119int xdi_diff(mmfile_t *mf1, mmfile_t *mf2, xpparam_t const *xpp, xdemitconf_t const *xecfg, xdemitcb_t *xecb)
120{
121 mmfile_t a = *mf1;
122 mmfile_t b = *mf2;
123
124 if (mf1->size > MAX_XDIFF_SIZE || mf2->size > MAX_XDIFF_SIZE)
125 return -1;
126
127 if (!xecfg->ctxlen && !(xecfg->flags & XDL_EMIT_FUNCCONTEXT))
128 trim_common_tail(&a, &b);
129
130 return xdl_diff(&a, &b, xpp, xecfg, xecb);
131}
132
133int xdi_diff_outf(mmfile_t *mf1, mmfile_t *mf2,
134 xdiff_emit_hunk_fn hunk_fn,

Callers 5

collect_diffFunction · 0.85
xdi_diff_outfFunction · 0.85
diff_hunksFunction · 0.85
diff_twoFunction · 0.85
show_diffFunction · 0.85

Calls 2

trim_common_tailFunction · 0.85
xdl_diffFunction · 0.85

Tested by

no test coverage detected