Re: [PATCH 2/2] fetch: add branch.*.merge to default ref-prefix extension
- From
Jeff King <peff@peff.net>
- Date
- Sep 11, 2022, 05:08 UTC
- Message-ID
- <Yx1tSF7Y9XU8eGQ2@coredump.intra.peff.net>
- In-Reply-To
- <xmqqv8pxm880.fsf@gitster.g>
On Thu, Sep 08, 2022 at 10:23:43PM -0700, Junio C Hamano wrote:
Show 7 quoted lines
> Giving extra garbage to the set of prefixes does not hurt the > correctness, but we didn't add the extra prefix for > branch.<name>.merge before this fix, so not using > expand_ref_prefix() is not breaking anybody who weren't broken > before. So I think it may be OK to support only the full refs at > first. It's just that folks who didn't have full refname as the > value is not helped by our fix.
Right. My patch is a strict improvement. I just wasn't sure if we should go further while we are here.
Show 6 quoted lines
> If enough folks complain that they have handcrafted (or prepared by > third-party tools) branch.<name>.merge that is not a full refname, > we could switch to expand_ref_prefix() and as long as the refnames > on the remote side is not ambiguous, things will still work > correctly, but I'd prefer to keep it tight until we actually hear > complaints.
OK, that matches my feeling, too. So I think the series as-is should be fine.
-Peff