X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=transport.h;h=096f6e9478301395ca05d81eaac6e53e0acd69b0;hb=2ec33cdd19bd80308fcef45828e37e79c4b56dc5;hp=6dd9ae182fe12c53860a6af02461ff819d59fd6e;hpb=39914cb50693e6fbc3002bbc30366e25fe6beca2;p=git.git diff --git a/transport.h b/transport.h index 6dd9ae182..096f6e947 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