* git diff odds
@ 2008-03-26 1:00 Xavier Maillard
2008-03-26 2:19 ` Linus Torvalds
0 siblings, 1 reply; 3+ messages in thread
From: Xavier Maillard @ 2008-03-26 1:00 UTC (permalink / raw)
To: git
Hi,
With LESS variable set as "-M", git diff displays escape sequence
instead of the colored ouput (as requested in my .git/config =>
color.diff=auto). If set to FRSX, it works perfectly.
Is this a bug ?
Regards,
Xavier
P.S: I am unsubscribing from this list (too many messages) so
please keep me in the Cc to respond. Thank you.
--
http://www.gnu.org
http://www.april.org
http://www.lolica.org
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: git diff odds
2008-03-26 1:00 git diff odds Xavier Maillard
@ 2008-03-26 2:19 ` Linus Torvalds
2008-03-27 1:00 ` Xavier Maillard
0 siblings, 1 reply; 3+ messages in thread
From: Linus Torvalds @ 2008-03-26 2:19 UTC (permalink / raw)
To: Xavier Maillard; +Cc: git
On Wed, 26 Mar 2008, Xavier Maillard wrote:
>
> With LESS variable set as "-M", git diff displays escape sequence
> instead of the colored ouput (as requested in my .git/config =>
> color.diff=auto).
That's how 'less' works. It shows escape sequences as the escapes by
default.
> If set to FRSX, it works perfectly.
It's the '-R' part that does the magic.
> Is this a bug ?
No, it's documented less behaviour. See "man less".
If you want to use "-M", you can mix it with R (or the other flags, for
that matter) and use "LESS=MR" or "LESS=FRSXM" or whatever you like. But
if you want less to pass through colors, you need that R there somewhere.
(You could use lower-case "r" too, but that's very dangerous, since it
lets through _all_ escape sequences, including the ones that really screw
up your terminal experience)
Linus
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: git diff odds
2008-03-26 2:19 ` Linus Torvalds
@ 2008-03-27 1:00 ` Xavier Maillard
0 siblings, 0 replies; 3+ messages in thread
From: Xavier Maillard @ 2008-03-27 1:00 UTC (permalink / raw)
To: Linus Torvalds; +Cc: git
> Is this a bug ?
No, it's documented less behaviour. See "man less".
Thank you very much for your explanations.
Xavier
--
http://www.gnu.org
http://www.april.org
http://www.lolica.org
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-03-27 1:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-26 1:00 git diff odds Xavier Maillard
2008-03-26 2:19 ` Linus Torvalds
2008-03-27 1:00 ` Xavier Maillard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).