X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=transport.h;h=e4e6177e2632b4a764703c11ef0a8033eafea037;hb=525ecd26c6cc8d1dc0c6190d8266e5d30b06da51;hp=b1c225276619c3bc4dda5dcd0469e242ab421ea0;hpb=3ba4f3a9fc68ba4c5a0064107e8993c5fc5b684f;p=git.git diff --git a/transport.h b/transport.h index b1c225276..e4e6177e2 100644 --- a/transport.h +++ b/transport.h @@ -25,7 +25,7 @@ struct transport { int (*disconnect)(struct transport *connection); char *pack_lockfile; - signed verbose : 2; + signed verbose : 3; /* Force progress even if the output is not a tty */ unsigned progress : 1; }; @@ -35,6 +35,8 @@ struct transport { #define TRANSPORT_PUSH_DRY_RUN 4 #define TRANSPORT_PUSH_MIRROR 8 #define TRANSPORT_PUSH_VERBOSE 16 +#define TRANSPORT_PUSH_PORCELAIN 32 +#define TRANSPORT_PUSH_QUIET 64 /* Returns a transport suitable for the url */ struct transport *transport_get(struct remote *, const char *); @@ -67,12 +69,17 @@ int transport_set_option(struct transport *transport, const char *name, const char *value); int transport_push(struct transport *connection, - int refspec_nr, const char **refspec, int flags); + int refspec_nr, const char **refspec, int flags, + int * nonfastforward); const struct ref *transport_get_remote_refs(struct transport *transport); int transport_fetch_refs(struct transport *transport, const struct ref *refs); void transport_unlock_pack(struct transport *transport); int transport_disconnect(struct transport *transport); +char *transport_anonymize_url(const char *url); + +/* Transport methods defined outside transport.c */ +int transport_helper_init(struct transport *transport, const char *name); #endif