Subject: Re: [PATCH 5/6 (v2)] upload-pack: send the HEAD information

From: Junio C Hamano <[email-masked]>
Date: Mon, 01 Dec 2008 17:31:16 -0800

Jeff King <[email-masked]> writes:

> On Mon, Dec 01, 2008 at 06:12:54AM -0800, Junio C Hamano wrote:
>
>> +			packet_write(1, "%s %s%c%s%c%s\n", sha1_to_hex(sha1), refname,
>> +				     0, capabilities, 0, target);
>
> Yuck. My two complaints are:
>
>   (1) this implicitly handles only the HEAD symref.

But this information *is* on the "40-hex name" line that describes the
HEAD ;-)

You can trivially extend it to add this to other symbolic refs if you are
interested.  I wasn't.