Re: [PATCH v2 08/12] skip_prefix(): check const match between in and out params
- From
Jeff King <peff@peff.net>
- Date
- Apr 2, 2026, 06:01 UTC
- Message-ID
- <20260402060119.GA3504521@coredump.intra.peff.net>
- In-Reply-To
- <xmqqeckyt08e.fsf@gitster.g>
On Wed, Apr 01, 2026 at 10:11:45PM -0700, Junio C Hamano wrote:
Show 13 quoted lines
> Jeff King <peff@peff.net> writes: > > > +/* > > + * Check that an out-parameter that is "at least as const as" a matching > > + * in-parameter. For example, skip_prefix() will return "out" that is a subset > > + * of "str". So: > > Sorry for not mentioning earlier, but I couldn't quite parse the > above with "that" immediately after "out-parameter". I am guessing > that you wanted to say an equivalent of > > Check that an out-parameter "out" is at least as const as a > matching in-parameter "in".
Yes, it's just a typo. What you wrote is what I meant. Can you fix it up while applying?
-Peff