summaryrefslogtreecommitdiff
path: root/transport.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-03-02 12:44:09 -0800
committerJunio C Hamano <gitster@pobox.com>2010-03-02 12:44:09 -0800
commitbd282f58ad9c4c0fdc1a9f56889ac7132d889d34 (patch)
treec743ff1283ed395789192a446d1b4120d7e54c8f /transport.h
parentd5f61ce1574d0167fd0902bd3c6ed83bd072e976 (diff)
parentf1863d0d16b9a5288671e17b7fa2eba8244ead2f (diff)
downloadgit-bd282f58ad9c4c0fdc1a9f56889ac7132d889d34.tar.gz
Merge branch 'ml/send-pack-transport-refactor'
* ml/send-pack-transport-refactor: refactor duplicated code in builtin-send-pack.c and transport.c
Diffstat (limited to 'transport.h')
-rw-r--r--transport.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/transport.h b/transport.h
index 6dd9ae182f..096f6e9478 100644
--- a/transport.h
+++ b/transport.h
@@ -98,6 +98,7 @@ struct transport {
#define TRANSPORT_PUSH_PORCELAIN 32
#define TRANSPORT_PUSH_QUIET 64
#define TRANSPORT_PUSH_SET_UPSTREAM 128
+#define TRANSPORT_SUMMARY_WIDTH (2 * DEFAULT_ABBREV + 3)
/* Returns a transport suitable for the url */
struct transport *transport_get(struct remote *, const char *);
@@ -148,4 +149,14 @@ int transport_connect(struct transport *transport, const char *name,
/* Transport methods defined outside transport.c */
int transport_helper_init(struct transport *transport, const char *name);
+/* common methods used by transport.c and builtin-send-pack.c */
+void transport_verify_remote_names(int nr_heads, const char **heads);
+
+void transport_update_tracking_ref(struct remote *remote, struct ref *ref, int verbose);
+
+int transport_refs_pushed(struct ref *ref);
+
+void transport_print_push_status(const char *dest, struct ref *refs,
+ int verbose, int porcelain, int *nonfastforward);
+
#endif