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

Function diff_flush_stat

diff.c:6581–6592  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6579}
6580
6581static void diff_flush_stat(struct diff_filepair *p, struct diff_options *o,
6582 struct diffstat_t *diffstat)
6583{
6584 if (diff_unmodified_pair(p))
6585 return;
6586
6587 if ((DIFF_FILE_VALID(p->one) && S_ISDIR(p->one->mode)) ||
6588 (DIFF_FILE_VALID(p->two) && S_ISDIR(p->two->mode)))
6589 return; /* no useful stat for tree diffs */
6590
6591 run_diffstat(p, o, diffstat);
6592}
6593
6594static void diff_flush_checkdiff(struct diff_filepair *p,
6595 struct diff_options *o)

Callers 1

compute_diffstatFunction · 0.85

Calls 2

diff_unmodified_pairFunction · 0.85
run_diffstatFunction · 0.85

Tested by

no test coverage detected