From: Junio C Hamano Date: Fri, 03 Jul 2026 20:38:48 GMT Subject: Re: [PATCH v2 0/4] rev-parse: exit 0 on --help Message-ID: In-Reply-To: <20260702084519.GB481298@coredump.intra.peff.net> Jeff King writes: > The other issue I raised in the earlier round is that a script like: > > cat >git-foo <<\EOF > #!/bin/sh > git log --my-options "$@" >output || exit 1 > do_something EOF > > when invoked as "git foo --help" will now call do_something with > nonsense input, rather than exiting from the "error" returned by > git-log. This only affects hacky little scripts like this that are not > otherwise parsing their own options, but sometimes those are the most > common. ;) Yeah, I agree that the above is a much more likely breakage scenario than I imagined. > I'm not convinced there will be much fallout, but it is possible. True.