Re: [BUG] git -p status does not use colors
- From
Jeff King <peff@peff.net>
- Date
- Feb 16, 2007, 15:56 UTC
- Message-ID
- <20070216155658.GB7183@coredump.intra.peff.net>
- In-Reply-To
- <20070216151925.GA28974@moooo.ath.cx>
On Fri, Feb 16, 2007 at 04:19:25PM +0100, Matthias Lederhofer wrote:
Show 5 quoted lines
> git -p status starts the pager, then runs git-commit.sh (named > git-status) which in turn runs git-runstatus. I guess the problem is > that git-runstatus cannot check that the pager was started and just > knows that stdout is no terminal. Has anyone an idea how to fix > this?
Your analysis looks right to me. I think you would need to set GIT_PAGER_IN_USE in the environment whenever you turn on the pager in the git wrapper, and then set git's internal pager_in_use variable based on that.
-Peff