Re: [PATCH] git-status: colorize status output
- From
Jeff King <peff@peff.net>
- Date
- Aug 5, 2006, 23:42 UTC
- Message-ID
- <20060805234240.GA11545@coredump.intra.peff.net>
- In-Reply-To
- <20060805203107.GB16186@moooo.ath.cx>
On Sat, Aug 05, 2006 at 10:27:59PM +0200, Matthias Lederhofer wrote:
> I would suggest that all scripts that use colors have a > always/auto/never (with boolean fallback) option and also honor > pager.color if the pager is in use.
I'll send out a patch in a moment.
> I don't see the case where git-status and git status behave > differently (except for git -p status but git-status does not have an > option for paging at all).
Sorry, I didn't say what I meant at all. My problem was that one cannot get color with a pager using git-status (by doing 'git-status | less'). The output is not a tty, but GIT_PAGER_IN_USE is not set (and of course I cannot use '-p'). However, that is a moot point with always/auto/never, since in such a case I can just use 'always'.
-Peff