Re: [PATCH 0/8 v6] diff --stat: use the full terminal width
- From
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
- Date
- Feb 21, 2012, 16:11 UTC
- Message-ID
- <4F43C23C.8070304@in.waw.pl>
- In-Reply-To
- <CACsJy8AXH6xm-ShH_HF6RwATFwsYtAZQfcWoB9VpaiCMj6e8vQ@mail.gmail.com>
On 02/21/2012 04:16 PM, Nguyen Thai Ngoc Duy wrote:
Show 15 quoted lines
> Not related to changes in the series, but on the same topic. Have you > considered grouping pathnames to reduce pressure on truncating them? > Instead of showing > > a/b/c | ++-- > a/b/d | --++ > > you could show > > a/b: > c | ++-- > d | --++ > > Optimal grouping strategy could be hard, but at least we could use it > for the case "git diff --stat -- one/path/deep/in/here"
I use (or would like to be able to use) the --stat output to select with the mouse and paste into something like emacsclient -n <pathname> This would be harder with the grouping, because I'd have to select two parts and paste two times and type a slash. So for me this would be a minus.
Also, I'm not sure about grouping if there's more than one group. The graph wouldn't be as readable. But if there's only one group, i.e. if all filenames have a common prefix ending in a slash, like in your example, this could be useful.
Zbyszek