Skip to content

Commit 6f93a63

Browse files
author
Linus Torvalds
committed
diff.c: don't silently ignore unknown state changes in diffs.
Give them an "unknown" status, ie '?'.
1 parent 4cae1a9 commit 6f93a63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

diff.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ void diff_flush(int diff_output_style, int resolve_rename_copy)
768768
for (i = 0; i < q->nr; i++) {
769769
struct diff_filepair *p = q->queue[i];
770770
if (p->status == 0)
771-
continue;
771+
p->status = '?';
772772
switch (diff_output_style) {
773773
case DIFF_FORMAT_PATCH:
774774
diff_flush_patch(p);

0 commit comments

Comments
 (0)