| 6605 | } |
| 6606 | |
| 6607 | int 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 |
| 6627 | void diff_debug_filespec(struct diff_filespec *s, int x, const char *one) |
no test coverage detected