Re: [PATCH] revert: clarify seemingly bogus OPT_END repetition
- From
Jeff King <peff@peff.net>
- Date
- Jul 6, 2016, 10:48 UTC
- Message-ID
- <20160706104800.GA28798@sigill.intra.peff.net>
- In-Reply-To
- <alpine.DEB.2.20.1607060901430.6426@virtualbox>
On Wed, Jul 06, 2016 at 09:03:44AM +0200, Johannes Schindelin wrote:
Show 15 quoted lines
> > By the way, I notice that the error message when concat fails is just:
> >
> > if (parse_options_concat(options, ARRAY_SIZE(options), cp_extra))
> > die(_("program error"));
> >
> > Should this become:
> >
> > die("BUG: not enough room to concatenate options");
> >
> > as part of your BUG cleanups elsewhere?
>
> Not really. I do not have time for a crusade through all of the die()
> statements to determine whether they're really bug reports. You refer to
> my clean-up of merge-recursive.c, right? That was a necessary prerequisite
> for the patch to stop die()ing in case of errors.Yeah. I didn't look at it all that closely, but it looked like you hit places outside of merge-recursive, too. I agree it is not worth including unless you are crusading, though (and anyway, my patch gets rid of the message entirely).
-Peff