Thread (12 messages) flat view 12 messages, 3 authors, 2016-06-15

Re: [PATCH 0/8 v6] diff --stat: use the full terminal width

From: Zbigniew Jędrzejewski-Szmek <hidden>
Date: 2016-06-15 22:53:07

On 02/21/2012 04:16 PM, Nguyen Thai Ngoc Duy wrote:
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help