aboutsummaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-09-29 02:06:24 -0700
committerJunio C Hamano <junkio@cox.net>2006-09-29 02:06:24 -0700
commitbc1a5807575b2f34538d4158834da6524a4fc1f7 (patch)
tree8e5015d6d3d2c446561e4e13b91c50965c19a338 /diff.c
parent21ff2bdb887c836aab3346bbfa6a3e0251ff6104 (diff)
downloadgit-bc1a5807575b2f34538d4158834da6524a4fc1f7.tar.gz
git-bc1a5807575b2f34538d4158834da6524a4fc1f7.tar.xz
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>
Diffstat (limited to 'diff.c')
-rw-r--r--diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/diff.c b/diff.c
index 2464238cc..17f5a911d 100644
--- a/diff.c
+++ b/diff.c
@@ -208,7 +208,7 @@ static void emit_rewrite_diff(const char *name_a,
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);