path: root/transport.h
diff options
authorShawn O. Pearce <>2007-09-15 07:23:14 (GMT)
committerJunio C Hamano <>2007-09-19 10:22:31 (GMT)
commite5f4e214636f9c9bd36c2897634108d5ad5587a1 (patch)
tree297b615846c859e93f20c8aa9cf5262d13a849ff /transport.h
parentbe6042cfa59358b733b6f9ba05bcbc317998d9fe (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 <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'transport.h')
1 files changed, 1 insertions, 3 deletions
diff --git a/transport.h b/transport.h
index f2bbdf7..6a95d66 100644
--- a/transport.h
+++ b/transport.h
@@ -6,7 +6,6 @@
struct transport {
unsigned verbose : 1;
- unsigned fetch : 1;
struct remote *remote;
const char *url;
@@ -38,8 +37,7 @@ struct transport_ops {
/* Returns a transport suitable for the url */
-struct transport *transport_get(struct remote *remote, const char *url,
- int fetch);
+struct transport *transport_get(struct remote *, const char *);
/* Transport options which apply to git:// and scp-style URLs */