From: Junio C Hamano Date: Tue, 05 Feb 2013 15:55:42 GMT Subject: Re: [PATCH v3 7/8] fetch: fetch objects by their exact SHA-1 object names Message-ID: <7vk3qmvjpd.fsf@alter.siamese.dyndns.org> In-Reply-To: <20130205091938.GB24973@sigill.intra.peff.net> Jeff King writes: > On Wed, Jan 30, 2013 at 10:45:41AM -0800, Junio C Hamano wrote: > >> Teach "git fetch" to accept an exact SHA-1 object name the user may >> obtain out of band on the LHS of a pathspec, and send it on a "want" >> message when the server side advertises the allow-tip-sha1-in-want >> capability. > > Hmm. The UI on this is a little less nice than I would have hoped. Naming with unadvertised *refname*, not object name, needs protocol extension for the serving side to expand the name to object name; otherwise the receiving end wouldn't know what tip what it asked resulted in. And that belongs to a separate "expand refs" extension (aka "delaying ref advertisement") that is outside the scope of this series but can be built on top, as I said in the cover letter.