Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH RESEND] Do not override LESS

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:45:13

Anders Melchiorsen [off-list ref] writes:
Junio C Hamano [off-list ref] writes:
quoted
3. Christ has been happily using git with his PAGER set to "less".  He
   suddenly notices that output from git linewraps and the pager does not
   exit when showing a short output, and gets very unhappy.
Well, I noted that point already, so I had hoped for a reply
explaining why it is a big problem.
It is a huge problem.  It breaks people's existing perfectly well working
setup.

And I do not think it is impossible to solve the issue without doing so.
While I am wary of advocating a patch that makes Christ unhappy, the
"3." issue is easily fixed by him setting GIT_PAGER="less -FRSX".
That's not a solution.  Alice and Bob can also change their environment to
their taste as well.  Why punish existing users?

If the problem you are trying to solve is that there is no existing
combination of the environment variables for them to do so, you can solve
it by introducing a new configuration or environment to support such usage
and documenting it, can't you?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help