Re: [PATCH] Allow git-diff exit with codes similar to diff(1)
- From
Alex Riesen <raa.lkml@gmail.com>
- Date
- Mar 15, 2007, 13:56 UTC
- Message-ID
- <81b0412b0703150656v6fb91c9bge73f64d4dc05a115@mail.gmail.com>
- In-Reply-To
- <45F940E0.60302@fs.ei.tum.de>
On 3/15/07, Simon 'corecode' Schubert <corecode@fs.ei.tum.de> wrote:
Show 8 quoted lines
> Alex Riesen wrote: > > We have "PAGER=cat" in test-lib.sh which just disables pager, > > so gits tests do not have the problem (maybe it was disabled just > > because of this?). And if someone has own tests _with_ pager active > > the one better be aware of what the one doing. > > Does PAGER=cat really disable the pager? seems to me that it simply > passes the data through cat.
Yes: pager.c:
else if (!*pager || !strcmp(pager, "cat")) return;