Re: [PATCH] pager: use an environment variable for pager_in_use
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Feb 16, 2007, 19:06 UTC
- Message-ID
- <Pine.LNX.4.63.0702162004590.22628@wbgn013.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <20070216185653.GA10308@moooo.ath.cx>
Hi,
On Fri, 16 Feb 2007, Matthias Lederhofer wrote:
> Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> > +int pager_in_use = getenv("GIT_PAGER_IN_USE");
> test.c:3: error: initializer element is not constantSorry.
Still, it feels wrong to use two system calls when you need none.
How about working on making status and commit a builtin instead? This would not only solve your issue, but portability issues as well.
Ciao, Dscho