Skip to content

Commit

Permalink
Debuggery for unrelated problem
Browse files Browse the repository at this point in the history
  • Loading branch information
newren committed Jun 28, 2024
1 parent 96f36c6 commit 55f68b3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions diff.c
Original file line number Diff line number Diff line change
Expand Up @@ -6647,6 +6647,19 @@ static void diff_flush_patch_all_file_pairs(struct diff_options *o)
if (o->color_moved)
o->emitted_symbols = &esm;

#if 0
/* FIXME: Add additional headers here, and set pair_status */
for (i = 0; i < q->nr; i++) {
struct diff_filepair *cur = q->queue[i];
struct diff_filepair *next = q->queue[i+1];
if (cur->one->mode && next->one->mode) {
if (strcmp(cur->one->path, next->one->path) > 0)
fprintf(stderr, "cur: %s, next: %s\n",
cur->one->path, next->one->path);
assert(strcmp(cur->one->path, next->one->path) <= 0);
}
}
#endif
if (o->additional_path_headers)
create_filepairs_for_header_only_notifications(o);

Expand Down

0 comments on commit 55f68b3

Please sign in to comment.