]> git.ipfire.org Git - thirdparty/git.git/commit - upload-pack.c
Add stateless RPC options to upload-pack, receive-pack
authorShawn O. Pearce <spearce@spearce.org>
Sat, 31 Oct 2009 00:47:33 +0000 (17:47 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 5 Nov 2009 01:58:14 +0000 (17:58 -0800)
commit42526b478e369d7e8c9a95186ad87fae9930eea5
tree3e3791a0e156d559341a50598e0adc27fccaf06f
parent2f4038ab337e55017d4ff21ddbae9427544ca02c
Add stateless RPC options to upload-pack, receive-pack

When --stateless-rpc is passed as a command line parameter to
upload-pack or receive-pack the programs now assume they may
perform only a single read-write cycle with stdin and stdout.
This fits with the HTTP POST request processing model where a
program may read the request, write a response, and must exit.

When --advertise-refs is passed as a command line parameter only
the initial ref advertisement is output, and the program exits
immediately.  This fits with the HTTP GET request model, where
no request content is received but a response must be produced.

HTTP headers and/or environment are not processed here, but
instead are assumed to be handled by the program invoking
either service backend.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-receive-pack.c
upload-pack.c