Re: [PATCH] Allow git-diff exit with codes similar to diff(1)
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Mar 14, 2007, 01:18 UTC
- Message-ID
- <Pine.LNX.4.63.0703140216480.22628@wbgn013.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <Pine.LNX.4.64.0703131757080.9690@woody.linux-foundation.org>
Hi,
On Tue, 13 Mar 2007, Linus Torvalds wrote:
Show 9 quoted lines
> On Wed, 14 Mar 2007, Alex Riesen wrote: > > > > This introduces a new command-line option: --exit-code. The diff > > programs will return 1 for differences, return 0 for equality, and > > something else for errors. > > I don't think you should need a new command-line option. > > Is there any reason to not just do this unconditionally?
So, big master to hom everybody bows, how to return the correct value when executing a pager? Because this _has_ to be done if we go that way.
Ciao, Dscho