summaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-11-21 23:06:44 -0800
committerJunio C Hamano <gitster@pobox.com>2007-11-21 23:06:44 -0800
commitf8b6809d52992ad14d035bcf7c8d8cfe00ef45a0 (patch)
treedc30997d91721ddbc4e92233b1bf493443bf55dd /diff.c
parentd794d9e70ebb8c767b04f25c03290ef305cd31ab (diff)
downloadgit-f8b6809d52992ad14d035bcf7c8d8cfe00ef45a0.tar.gz
Fix "quote" misconversion for rewrite diff output.
663af3422a648e87945e4d8c0cc3e13671f2bbde (Full rework of quote_c_style and write_name_quoted.) mistakenly used puts() when writing out a fixed string when it did not want to add a terminating LF. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.c')
-rw-r--r--diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/diff.c b/diff.c
index b08d28a578..6b54959610 100644
--- a/diff.c
+++ b/diff.c
@@ -2716,7 +2716,7 @@ static void diff_summary(struct diff_filepair *p)
break;
default:
if (p->score) {
- puts(" rewrite ");
+ fputs(" rewrite ", stdout);
write_name_quoted(p->two->path, stdout, ' ');
printf("(%d%%)\n", similarity_index(p));
}