Skip to content

Commit 82ca505

Browse files
author
Junio C Hamano
committed
git-diff -B output fix.
Geert noticed that complete rewrite diff missed the usual a/ and b/ leading paths. Pickaxe says it never worked, ever. Embarrassing. Signed-off-by: Junio C Hamano <junkio@cox.net> (cherry picked from bc1a580 commit)
1 parent f2b5792 commit 82ca505

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
@@ -333,7 +333,7 @@ static void emit_rewrite_diff(const char *name_a,
333333
diff_populate_filespec(two, 0);
334334
lc_a = count_lines(one->data, one->size);
335335
lc_b = count_lines(two->data, two->size);
336-
printf("--- %s\n+++ %s\n@@ -", name_a, name_b);
336+
printf("--- a/%s\n+++ b/%s\n@@ -", name_a, name_b);
337337
print_line_count(lc_a);
338338
printf(" +");
339339
print_line_count(lc_b);

0 commit comments

Comments
 (0)