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

Function diff_queue_is_empty

diff.c:6607–6624  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6605}
6606
6607int diff_queue_is_empty(struct diff_options *o)
6608{
6609 struct diff_queue_struct *q = &diff_queued_diff;
6610 int i;
6611 int include_conflict_headers =
6612 (o->additional_path_headers &&
6613 strmap_get_size(o->additional_path_headers) &&
6614 !o->pickaxe_opts &&
6615 (!o->filter || filter_bit_tst(DIFF_STATUS_UNMERGED, o)));
6616
6617 if (include_conflict_headers)
6618 return 0;
6619
6620 for (i = 0; i < q->nr; i++)
6621 if (!diff_unmodified_pair(q->queue[i]))
6622 return 0;
6623 return 1;
6624}
6625
6626#if DIFF_DEBUG
6627void diff_debug_filespec(struct diff_filespec *s, int x, const char *one)

Callers 1

log_tree_diff_flushFunction · 0.85

Calls 3

strmap_get_sizeFunction · 0.85
filter_bit_tstFunction · 0.85
diff_unmodified_pairFunction · 0.85

Tested by

no test coverage detected