Re: [PATCH 4/4] server info: Add HEAD to info/refs
From: Junio C Hamano <hidden>
Date: 2016-06-15 22:43:07
Petr Baudis [off-list ref] writes:
On Fri, Apr 27, 2007 at 05:51:36AM CEST, Junio C Hamano wrote:quoted
I always considered it was a bug that the native transport sends SHA-1 of HEAD after dereferencing the symref, instead of saying which branch it points at.Yes, you are right. That was what I was originally after, but then got sidetracked into working on something else and this easy bit was the only thing left done, so I just passed it along. :)quoted
How about proceeding along these lines?Looks generally good.quoted
* We add native protocol extension to let upload-pack to say what HEAD symref points at, in addition to the SHA-1 HEAD points at. Update peek-remote to show this information like this: ->refs/heads/master<TAB>HEAD<LF> 0d5e6c97...<TAB>HEAD<LF> ...Yet another obscure syntax? Why not just reusing the actual ref: syntax?
Yup, ref: is fine. Please make it so, but after 1.5.2 ;-).