|
|
|
@ -1280,11 +1280,14 @@ void diff_flush(struct diff_options *options)
@@ -1280,11 +1280,14 @@ void diff_flush(struct diff_options *options)
|
|
|
|
|
|
|
|
|
|
for (i = 0; i < q->nr; i++) { |
|
|
|
|
struct diff_filepair *p = q->queue[i]; |
|
|
|
|
if ((diff_output_format == DIFF_FORMAT_NO_OUTPUT) || |
|
|
|
|
(p->status == DIFF_STATUS_UNKNOWN)) |
|
|
|
|
continue; |
|
|
|
|
if (p->status == 0) |
|
|
|
|
|
|
|
|
|
switch (p->status) { |
|
|
|
|
case DIFF_STATUS_UNKNOWN: |
|
|
|
|
break; |
|
|
|
|
case 0: |
|
|
|
|
die("internal error in diff-resolve-rename-copy"); |
|
|
|
|
break; |
|
|
|
|
default: |
|
|
|
|
switch (diff_output_format) { |
|
|
|
|
case DIFF_FORMAT_PATCH: |
|
|
|
|
diff_flush_patch(p, options); |
|
|
|
@ -1300,8 +1303,11 @@ void diff_flush(struct diff_options *options)
@@ -1300,8 +1303,11 @@ void diff_flush(struct diff_options *options)
|
|
|
|
|
inter_name_termination, |
|
|
|
|
line_termination); |
|
|
|
|
break; |
|
|
|
|
case DIFF_FORMAT_NO_OUTPUT: |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
diff_free_filepair(q->queue[i]); |
|
|
|
|
} |
|
|
|
|
diff_free_filepair(p); |
|
|
|
|
} |
|
|
|
|
free(q->queue); |
|
|
|
|
q->queue = NULL; |
|
|
|
|