Re: git diff <-> diffstat
From: Linus Torvalds
Date: Sun Sep 24 2006 - 22:59:11 EST
On Mon, 25 Sep 2006, Adrian Bunk wrote:
>
> Ah, OK. The truncates are something I wasn't used from diffstat
> (diffstat always prints the complete name).
Yeah, I don't know what the right solution is.
Especially with renames (but even without), diffstat-like output can get
some _really_ long lines, and since I think it's important to get the
actual _stat_ part to line up (so that you can really see where the big
changes are), I felt it was more important to get that lining up than it
was to see the first part of the filename.
But yeah, we should probably have a flag to allow longer (and shorter)
lines, and another to control whether we truncate to strictly honor that
flag or not.
That said, I think the current behaviour is likely at least the right
default one. It's quite readable once you get used to it, and the renames
do _not_ get truncated in the "summary" part at the end, since then there
is nothing to line up with.
So for an example of this, just do
git show --summary --stat -M 06a36db1
where you have an already fairly long pathname that is then renamed to
_another_ long pathname.
Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/