From: Junio C Hamano Date: Thu, 06 Oct 2022 18:45:38 GMT Subject: Re: Idea: Git Bundle V3 capability @HEAD=ref/heads/ Message-ID: In-Reply-To: <037901f1-1649-1485-a853-9783b9d43b31@iee.email> Philip Oakley writes: > In brian's recent work on V3 bundles [1, et al] I spotted a potential > idea for resolving the long standing problem that the bundle code may > need to guess at which ref HEAD was pointed [2, et al] at when there > were two branches that pointed at the same HEAD oid. > > The basic idea is to utilise the new 'capabilities' field to pass the > particular ref that is HEAD using a 'HEAD' capability > i.e. sending the capability    @HEAD=ref/heads/ Whatever you do, I think it should model what the protocol between "git fetch" and "git upload-pack" use to convey where the symbolic refs point at.