author | Shawn O. Pearce <spearce@spearce.org> | |
Sat, 15 Sep 2007 07:23:14 +0000 (03:23 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 19 Sep 2007 10:22:31 +0000 (03:22 -0700) | ||
commit | e5f4e214636f9c9bd36c2897634108d5ad5587a1 | |
tree | 297b615846c859e93f20c8aa9cf5262d13a849ff | tree | snapshot |
parent | be6042cfa59358b733b6f9ba05bcbc317998d9fe | commit | diff |
Remove unnecessary 'fetch' argument from transport_get API
We don't actually need to know at the time of transport_get if the
caller wants to fetch, push, or do both on the returned object.
It is easier to just delay the initialization of the HTTP walker
until we know we will need it by providing a CURL specific fetch
function in the curl_transport that makes sure the walker instance
is initialized before use.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
We don't actually need to know at the time of transport_get if the
caller wants to fetch, push, or do both on the returned object.
It is easier to just delay the initialization of the HTTP walker
until we know we will need it by providing a CURL specific fetch
function in the curl_transport that makes sure the walker instance
is initialized before use.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-fetch.c | diff | blob | history | |
builtin-push.c | diff | blob | history | |
transport.c | diff | blob | history | |
transport.h | diff | blob | history |