Git's config core.pager doesn't respect color.pager

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux