Skip to content

Commit bc1a580

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>
1 parent 21ff2bd commit bc1a580

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
@@ -208,7 +208,7 @@ static void emit_rewrite_diff(const char *name_a,
208208
diff_populate_filespec(two, 0);
209209
lc_a = count_lines(one->data, one->size);
210210
lc_b = count_lines(two->data, two->size);
211-
printf("--- %s\n+++ %s\n@@ -", name_a, name_b);
211+
printf("--- a/%s\n+++ b/%s\n@@ -", name_a, name_b);
212212
print_line_count(lc_a);
213213
printf(" +");
214214
print_line_count(lc_b);

0 commit comments

Comments
 (0)