Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'transport.h')
-rw-r--r--transport.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/transport.h b/transport.h
index 6a95d66053..3e332ff53a 100644
--- a/transport.h
+++ b/transport.h
@@ -5,22 +5,11 @@
#include "remote.h"
struct transport {
- unsigned verbose : 1;
struct remote *remote;
const char *url;
-
void *data;
-
struct ref *remote_refs;
- const struct transport_ops *ops;
- char *pack_lockfile;
-};
-
-#define TRANSPORT_PUSH_ALL 1
-#define TRANSPORT_PUSH_FORCE 2
-
-struct transport_ops {
/**
* Returns 0 if successful, positive if the option is not
* recognized or is inapplicable, and negative if the option
@@ -34,8 +23,13 @@ struct transport_ops {
int (*push)(struct transport *connection, int refspec_nr, const char **refspec, int flags);
int (*disconnect)(struct transport *connection);
+ char *pack_lockfile;
+ unsigned verbose : 1;
};
+#define TRANSPORT_PUSH_ALL 1
+#define TRANSPORT_PUSH_FORCE 2
+
/* Returns a transport suitable for the url */
struct transport *transport_get(struct remote *, const char *);