* git sometimes stripping one path component in commit mails
@ 2006-09-29 8:41 Geert Uytterhoeven
2006-09-29 9:08 ` Junio C Hamano
0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2006-09-29 8:41 UTC (permalink / raw)
To: git, Linux Kernel Development
Hi,
I noticed git sometimes strips one path component from the filenames in the
patches mailed to the git-commits mailing lists. This causes problems when
piping these mails through diffstat.
Here is a part of an actual mail received through
git-commits-head@vger.kernel.org to demonstrate this issue:
Is this a current git bug, or a bug in the version used for those mailing
lists?
| commit 94c12cc7d196bab34aaa98d38521549fa1e5ef76
| tree 8e0cec0ed44445d74a2cb5160303d6b4dfb1bc31
| parent 25d83cbfaa44e1b9170c0941c3ef52ca39f54ccc
| author Martin Schwidefsky <schwidefsky@de.ibm.com> 1159455403 +0200
| committer Martin Schwidefsky <schwidefsky@de.ibm.com> 1159455403 +0200
| diff --git a/include/asm-s390/irqflags.h b/include/asm-s390/irqflags.h
| dissimilarity index 65%
| index 3b566a5..3f26131 100644
| --- include/asm-s390/irqflags.h
| +++ include/asm-s390/irqflags.h
^^
woops
| diff --git a/include/asm-s390/lowcore.h b/include/asm-s390/lowcore.h
| index 18695d1..06583ed 100644
| --- a/include/asm-s390/lowcore.h
| +++ b/include/asm-s390/lowcore.h
^^
OK
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: git sometimes stripping one path component in commit mails
2006-09-29 8:41 git sometimes stripping one path component in commit mails Geert Uytterhoeven
@ 2006-09-29 9:08 ` Junio C Hamano
0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2006-09-29 9:08 UTC (permalink / raw)
To: Geert Uytterhoeven; +Cc: git
Geert Uytterhoeven <geert@linux-m68k.org> writes:
> Is this a current git bug, or a bug in the version used for those mailing
> lists?
>
> | commit 94c12cc7d196bab34aaa98d38521549fa1e5ef76
>...
> | diff --git a/include/asm-s390/irqflags.h b/include/asm-s390/irqflags.h
> | dissimilarity index 65%
> | index 3b566a5..3f26131 100644
> | --- include/asm-s390/irqflags.h
> | +++ include/asm-s390/irqflags.h
> ^^
> woops
This is a current git bug (and git bug ever since it started to
say "dissimilarity index"). Thanks for noticing, and very sorry
for the trouble. It seems that a complete rewrite diff never
worked and nobody seriously looked at them.
This should fix it.
-- >8 --
[PATCH] 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>
---
diff.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/diff.c b/diff.c
index 2464238..17f5a91 100644
--- a/diff.c
+++ b/diff.c
@@ -208,7 +208,7 @@ static void emit_rewrite_diff(const char
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);
--
1.4.2.1.gce47b
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-09-29 9:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-29 8:41 git sometimes stripping one path component in commit mails Geert Uytterhoeven
2006-09-29 9:08 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).