Re: git status in clean working dir
- From
Jeff King <peff@peff.net>
- Date
- Jul 22, 2008, 04:52 UTC
- Message-ID
- <20080722045223.GC20787@sigill.intra.peff.net>
- In-Reply-To
- <20080722044359.GB20787@sigill.intra.peff.net>
On Tue, Jul 22, 2008 at 12:44:00AM -0400, Jeff King wrote:
> We could also swap the parent/child relationship, and have the pager as > child. But I assume that it is done the way we have it because otherwise > the shell gets confused about when the command ends (i.e., we want it to > run until pager completion). I didn't test, though.
Hmm, it looks like the MINGW32 codepath already _does_ spawn in that order, but has a "wait_for_child" atexit handler. I wonder if there is a reason all platforms can't use that trick (though the mingw approach uses run_command, which makes it harder to do the "wait for input before starting less" trick).
-Peff