All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff King <peff@peff.net>
To: git@vger.kernel.org
Subject: Re: [BUG] git -p status does not use colors
Date: Fri, 16 Feb 2007 10:56:58 -0500	[thread overview]
Message-ID: <20070216155658.GB7183@coredump.intra.peff.net> (raw)
In-Reply-To: <20070216151925.GA28974@moooo.ath.cx>

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

  reply	other threads:[~2007-02-16 15:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-16 15:19 [BUG] git -p status does not use colors Matthias Lederhofer
2007-02-16 15:56 ` Jeff King [this message]
2007-02-16 18:22   ` [PATCH] pager: use an environment variable for pager_in_use Matthias Lederhofer
2007-02-16 18:35     ` Johannes Schindelin
2007-02-16 18:56       ` Matthias Lederhofer
2007-02-16 19:06         ` Johannes Schindelin
2007-02-16 19:43           ` Simon 'corecode' Schubert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070216155658.GB7183@coredump.intra.peff.net \
    --to=peff@peff.net \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.