Re: [PATCH 3/3] shorten_unambiguous_ref(): avoid sscanf()
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 15, 2023, 16:41 UTC
- Message-ID
- <xmqq8rgy2857.fsf@gitster.g>
- In-Reply-To
- <Y+zslp55nmAQ5Fvi@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
> I had a similar thought, but I think it is fooled by "refs/heads/%foo". > The correct shortening there is "%foo". But we'd parse the > "refs/heads/%.*s" rule up to the ".", and then complain that they do not > match.
Yeah, you're right.