From: Junio C Hamano Date: Wed, 27 Sep 2017 07:07:16 GMT Subject: Re: [PATCH 2/3] validate_headref: use skip_prefix for symref parsing Message-ID: In-Reply-To: <20170927061726.gat3ykqx4fdstzq6@sigill.intra.peff.net> Jeff King 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.