Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorPetr Baudis <pasky@suse.cz>2006-04-11 15:30:46 +0400
committerJunio C Hamano <junkio@cox.net>2006-04-11 22:17:50 +0400
commit90c1b08c7dc5be890e697237f67a188da235ffc8 (patch)
tree3729cafeb8821a004fc3de1c398e1e2ca0b046e3 /diff.c
parent5c91da25d7da304d98c8808968f474f9fb7ac4db (diff)
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>
Diffstat (limited to 'diff.c')
-rw-r--r--diff.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/diff.c b/diff.c
index 99d76d01e3..a14e6644ca 100644
--- a/diff.c
+++ b/diff.c
@@ -1322,6 +1322,7 @@ void diff_flush(struct diff_options *options)
struct diff_filepair *p = q->queue[i];
flush_one_pair(p, DIFF_FORMAT_RAW, options);
}
+ putchar(options->line_termination);
}
for (i = 0; i < q->nr; i++) {
struct diff_filepair *p = q->queue[i];