summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f2b5792)
raw | patch | inline | side by side (parent: f2b5792)
author | Junio C Hamano <junkio@cox.net> | |
Fri, 29 Sep 2006 09:06:24 +0000 (02:06 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sat, 30 Sep 2006 05:32:16 +0000 (22:32 -0700) |
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)
leading paths. Pickaxe says it never worked, ever.
Embarrassing.
Signed-off-by: Junio C Hamano <junkio@cox.net>
(cherry picked from bc1a5807575b2f34538d4158834da6524a4fc1f7 commit)
diff.c | patch | blob | history |
index b3b1781a9cac05457e42691970c93b6e1501f68c..5dbc913a963eb3ed42d8b05aaf3c87d906931b04 100644 (file)
--- a/diff.c
+++ b/diff.c
diff_populate_filespec(two, 0);
lc_a = count_lines(one->data, one->size);
lc_b = count_lines(two->data, two->size);
- printf("--- %s\n+++ %s\n@@ -", name_a, name_b);
+ printf("--- a/%s\n+++ b/%s\n@@ -", name_a, name_b);
print_line_count(lc_a);
printf(" +");
print_line_count(lc_b);