Re: git status in clean working dir
- From
Jeff King <peff@peff.net>
- Date
- Jul 22, 2008, 07:10 UTC
- Message-ID
- <20080722071009.GA3610@sigill.intra.peff.net>
- In-Reply-To
- <20080722064603.GA25221@sigill.intra.peff.net>
On Tue, Jul 22, 2008 at 02:46:04AM -0400, Jeff King wrote:
> I am tempted by the "order switching" I mentioned, but that would entail > the git process waiting to clean the pager, during which time it may be > consuming memory. But maybe that isn't worth worrying about.
It feels very wrong proposing this during release freeze, but here is the "pager is child of git" implementation.
Patch 1/1 adds a bit of necessary infrastructure to run-command, and patch 2/2 does the deed. The nice thing is that it unifies the Windows and Unix implementations of setup_pager, so we get a nice line reduction.
pager.c | 49 ++++++++----------------------------------------- run-command.c | 2 ++ run-command.h | 1 + 3 files changed, 11 insertions(+), 41 deletions(-)