@matheusbsbs / matheus-bagliano / commits / 82ca505564
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> (cherry picked from bc1a5807575b2f34538d4158834da6524a4fc1f7 commit)

Junio C Hamano committed Sep 29, 2006 at 02:06 UTC 82ca50556471eadfc3212cb478161c3da5c4d02a
1 file changed +1 -1
diff.c
+1 -1
@@ -333,7 +333,7 @@ static void emit_rewrite_diff(const char *name_a,
333 diff_populate_filespec(two, 0);
334 lc_a = count_lines(one->data, one->size);
335 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);
337 print_line_count(lc_a);
338 printf(" +");
339 print_line_count(lc_b);