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

Re: [PATCH v2] pager: remove 'S' from $LESS by default

From: Jeff King <hidden>
Date: 2016-06-15 23:01:01

On Tue, May 06, 2014 at 08:49:22PM +0200, Matthieu Moy wrote:
Exactly. I personally never use "git blame" outside "git gui blame" for
this reason.
I'd recommend "tig blame" for this, too, which behaves like "less -S"
with respect to long lines (and also makes it easy to jump to the full
diff, or restart the blame from the parent of the found commit).
It's possible for a user to set pager.blame to "less -S" to get back to
the previous behavior only for blame.

The idea of having a separate default value for pager.blame (or set
$LESS differently for blame) crossed my mind, but I actually don't like
it, as it would make it harder for a user to fine-tune his configuration
manually (one would have to cancel all the corner-cases that Git would
set by default).
Agreed. We already get some confusion from users with "git has set $LESS
for me".  Changing it to "git set up $LESS depending on which command is
running" seems like it would cause more of the same.

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help