Re: [PATCH 5/6 (v2)] upload-pack: send the HEAD information
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Dec 2, 2008, 01:31 UTC
- Message-ID
- <7vk5ajqs63.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <20081201174414.GA22185@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 8 quoted lines
> 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.