git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Git's config core.pager doesn't respect color.pager
@ 2008-07-23  2:10 Benjamin Kudria
  2008-07-28  7:25 ` Jeff King
  0 siblings, 1 reply; 2+ messages in thread
From: Benjamin Kudria @ 2008-07-23  2:10 UTC (permalink / raw)
  To: git

I'm seeing a problem with git.  It's easier to demonstrate than
explain.  The relevant parts of my .gitconfig:

[core]
	pager = tig

[color]
	diff = auto
	pager = false

tig is a console-based git client that can also act as a pager,
colorizing git output.

So, with the above config, when I do:

git diff | tig

Everything works correctly - git sends no color codes, because of
color.pager = false.

However, if I do just:

git diff

git uses core.pager to display the output, but still sends color
codes, which is OK for, say, less, bit not so good for tig, which does
it's own colorizing, and displays the color codes git sends as-is.

Shouldn't core.pager respect color.pager, and not send the color codes?

Benjamin Kudria

-- 
http://ben.kudria.net | Jabber: ben@kudria.net

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-07-28  7:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-23  2:10 Git's config core.pager doesn't respect color.pager Benjamin Kudria
2008-07-28  7:25 ` Jeff King

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).