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

Function diff_flush_patch_quietly

diff.c:6566–6579  ·  view source on GitHub ↗

return 1 if any change is found; otherwise, return 0 */

Source from the content-addressed store, hash-verified

6564
6565/* return 1 if any change is found; otherwise, return 0 */
6566static int diff_flush_patch_quietly(struct diff_filepair *p, struct diff_options *o)
6567{
6568 FILE *saved_file = o->file;
6569 int saved_found_changes = o->found_changes;
6570 int ret;
6571
6572 o->file = NULL;
6573 o->found_changes = 0;
6574 diff_flush_patch(p, o);
6575 ret = o->found_changes;
6576 o->file = saved_file;
6577 o->found_changes |= saved_found_changes;
6578 return ret;
6579}
6580
6581static void diff_flush_stat(struct diff_filepair *p, struct diff_options *o,
6582 struct diffstat_t *diffstat)

Callers 1

diff_flushFunction · 0.85

Calls 1

diff_flush_patchFunction · 0.85

Tested by

no test coverage detected