X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=transport.h;h=c14da6f1e53ece9fa9ac2e68b73674c54329be5f;hb=259d87c354954e8ee3b241dce1393c27186e8ee7;hp=27bfc528acb5b51006c7d61db0d1d7910adaf31c;hpb=3ff7e178dc5c93e9d5b2738b1738a1a230a1b81a;p=git.git diff --git a/transport.h b/transport.h index 27bfc528a..c14da6f1e 100644 --- a/transport.h +++ b/transport.h @@ -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,7 +69,8 @@ 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); @@ -76,4 +79,7 @@ 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