git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Matthias LederhoferNext: Matthias Lederhofer
Message 2 of 7 in “[BUG] git -p status does not use colors”
  1. Matthias LederhoferFeb 16, 2007
  2. Jeff KingFeb 16, 2007
  3. pager: use an environment variable for pager_in_useMatthias Lederhofer, Feb 16, 2007
  4. Johannes SchindelinFeb 16, 2007
  5. Matthias LederhoferFeb 16, 2007
  6. Johannes SchindelinFeb 16, 2007
  7. Simon 'corecode' SchubertFeb 16, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.