Code

Discover refs via smart HTTP server when available
authorShawn O. Pearce <spearce@spearce.org>
Sat, 31 Oct 2009 00:47:40 +0000 (17:47 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 5 Nov 2009 01:58:15 +0000 (17:58 -0800)
commit97cc7bc45c2e076184b84749952b216036a6ecd6
tree99d871d15ad3f545461b12ef64f1d5b577537515
parentf5ba2d18f96037749f370c1386935e60f034c87e
Discover refs via smart HTTP server when available

Instead of loading the cached info/refs, try to use the smart HTTP
version when the server supports it.  Since the smart variant is
actually the pkt-line stream from the start of either upload-pack
or receive-pack we need to parse these through get_remote_heads,
which requires a background thread to feed its pipe.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
CC: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
remote-curl.c