From: Jeff King Date: Tue, 04 Mar 2025 07:51:46 GMT Subject: Re: The transfer.hideRefs of the upload-pack process does not work properly Message-ID: <20250304075146.GA1297781@coredump.intra.peff.net> In-Reply-To: <20250304075113.GD1283943@coredump.intra.peff.net> On Tue, Mar 04, 2025 at 02:51:14AM -0500, Jeff King wrote: > From your reproduction, it looks like the issue is that for loose refs, > asking for_each_ref() to exclude "refs/heads/foo" will not yield > "refs/heads/foo/bar", but will yield "refs/heads/foo-bar". > > And that was true for packed-refs, too, before 59c35fac54 > (refs/packed-backend.c: implement jump lists to avoid excluded > pattern(s), 2023-07-10). After that, packed-refs exclude both. Oh, and of course it would be interesting to know how reftables behave here, too, as I think they recently learned about exclusions. -Peff