From: Jeff King Date: Tue, 17 Mar 2026 18:44:41 GMT Subject: Re: [PATCH] rev-parse: have --parseopt callers exit 0 on --help Message-ID: <20260317184441.GA574291@coredump.intra.peff.net> In-Reply-To: On Tue, Mar 17, 2026 at 10:06:17AM -0700, Junio C Hamano wrote: > > But this > > is not just a bug fix for --parseopt, but a change in overall intent. It > > might be worth digging in the commit history or list archive to see if > > there's any discussion on why we are using 129 in the first place. > > And if it turns out that old discussion was convincing enough, I'd > prefer to see us moving to --help/-h exiting with 0 eventually. I > do not mind doing so at the Git 3.0 boundary, if an excuse to make > a big change is needed ;-) I could not find anything convincing. :) We should also apply our little grey cells and see if we can think of any reason somebody would be unhappy with a change of exit code now. The most I could come up with is a script like: #!/bin/sh git rev-list "$@" >tmp && do_something