diff options
author | Junio C Hamano <junkio@cox.net> | 2006-09-29 02:06:24 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-09-29 22:32:16 -0700 |
commit | 82ca50556471eadfc3212cb478161c3da5c4d02a (patch) | |
tree | 33a464255998d7c1b625397ce65e316c760cd413 /diff.c | |
parent | Fix git-am safety checks (diff) | |
download | tgif-82ca50556471eadfc3212cb478161c3da5c4d02a.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>
(cherry picked from bc1a5807575b2f34538d4158834da6524a4fc1f7 commit)
Diffstat (limited to 'diff.c')
-rw-r--r-- | diff.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -333,7 +333,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); |