X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=transport.h;h=02ea248db18a558674825384a5d2678a45483873;hb=48d25ca;hp=59842d49947b5e6bb502dcd17405c302c61d0c9b;hpb=79d3a236c551ad59719a6835bee03a1446296e65;p=~andy%2Fgit diff --git a/transport.h b/transport.h index 59842d499..02ea248db 100644 --- a/transport.h +++ b/transport.h @@ -11,6 +11,7 @@ struct git_transport_options { unsigned followtags : 1; unsigned check_self_contained_and_connected : 1; unsigned self_contained_and_connected : 1; + unsigned update_shallow : 1; int depth; const char *uploadpack; const char *receivepack; @@ -152,6 +153,9 @@ struct transport *transport_get(struct remote *, const char *); /* Aggressively fetch annotated tags if possible */ #define TRANS_OPT_FOLLOWTAGS "followtags" +/* Accept refs that may update .git/shallow without --depth */ +#define TRANS_OPT_UPDATE_SHALLOW "updateshallow" + /** * Returns 0 if the option was used, non-zero otherwise. Prints a * message to stderr if the option is not used.