Re: [PATCH 2/3] validate_headref: use skip_prefix for symref parsing
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 27, 2017, 07:07 UTC
- Message-ID
- <xmqqa81g4o2j.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <20170927061726.gat3ykqx4fdstzq6@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
> Since the previous commit guarantees that our symref buffer > is NUL-terminated, we can just use skip_prefix() and friends > to parse it. This is shorter and saves us having to deal > with magic numbers and keeping the "len" counter up to date.
Ah, I should have read the whole thing before starting to type a response to 1/3 ;-)
Looks good.