From: Junio C Hamano Date: Tue, 14 Feb 2023 22:25:19 GMT Subject: Re: [PATCH 3/3] shorten_unambiguous_ref(): avoid sscanf() Message-ID: In-Reply-To: Junio C Hamano writes: > Am I reading the loop correctly? I wanted the bogus refname not to > match the rule, but without peeking back refname[-1], I cannot tell > the two cases apart at this point. Heh. $ git symbolic-ref BOGO refsXheads/naster $ git symbolic-ref --short BOGO heads/naster