Re: [BUG] git -p status does not use colors

From: Jeff King <peff@peff.net>
Date: 2007-02-17 02:56:58
On Fri, Feb 16, 2007 at 04:19:25PM +0100, Matthias Lederhofer wrote:

> 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
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Sat Feb 17 03:32:13 2007

This archive was generated by hypermail 2.1.8 : 2007-02-17 03:36:02 EST