From: Junio C Hamano Date: Wed, 28 Nov 2007 19:00:55 GMT Subject: Re: [PATCH] Allow update hooks to update refs on their own Message-ID: <7vmysy5h5k.fsf@gitster.siamese.dyndns.org> In-Reply-To: <20071128161033.GA20308@coredump.intra.peff.net> Jeff King writes: >> Couldn't you do this with a status message? ("ok changed by >> hook" or something.) > > Having just touched this code, I believe the answer is yes. receive-pack > has always sent just "ok \n", so we could start interpreting > anything after the bit freely... More importantly, no send-pack choked on "ok " followed by a SP (old ones just checked "ok" and nothing else, the current one NULs out the SP and lets you use the rest as a message), so such a change to receive-pack does not have to break older send-pack.