@matheusbsbs / matheus-bagliano / commits / bc1a580757
Fork 0

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>

Junio C Hamano committed Sep 29, 2006 at 02:06 UTC bc1a5807575b2f34538d4158834da6524a4fc1f7
1 file changed +1 -1
diff.c
+1 -1
@@ -208,7 +208,7 @@ static void emit_rewrite_diff(const char *name_a,
208 diff_populate_filespec(two, 0);
209 lc_a = count_lines(one->data, one->size);
210 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);
212 print_line_count(lc_a);
213 printf(" +");
214 print_line_count(lc_b);