Skip to content

Commit 90c1b08

Browse files
Petr BaudisJunio C Hamano
authored andcommitted
Separate the raw diff and patch with a newline
More friendly for human reading I believe, and possibly friendlier to some parsers (although only by an epsilon). Signed-off-by: Petr Baudis <pasky@suse.cz> Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 5c91da2 commit 90c1b08

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

combine-diff.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -868,6 +868,7 @@ const char *diff_tree_combined_merge(const unsigned char *sha1,
868868
header = NULL;
869869
}
870870
opt->output_format = saved_format;
871+
putchar(opt->line_termination);
871872
}
872873
for (p = paths; p; p = p->next) {
873874
if (show_combined_diff(p, num_parent, dense,

diff.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,6 +1322,7 @@ void diff_flush(struct diff_options *options)
13221322
struct diff_filepair *p = q->queue[i];
13231323
flush_one_pair(p, DIFF_FORMAT_RAW, options);
13241324
}
1325+
putchar(options->line_termination);
13251326
}
13261327
for (i = 0; i < q->nr; i++) {
13271328
struct diff_filepair *p = q->queue[i];

0 commit comments

Comments
 (0)