push: fix "refs/tags/ hierarchy cannot be updated without --force"
[gitweb.git] / cache.h
diff --git a/cache.h b/cache.h
index d72b64d8b0958216e1f7266b11816c210be0efb9..a942bbd59f87600b597c452f92e9faaf1a7737bf 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -999,15 +999,18 @@ struct ref {
        unsigned char old_sha1[20];
        unsigned char new_sha1[20];
        char *symref;
-       unsigned int force:1,
+       unsigned int
+               force:1,
+               requires_force:1,
                merge:1,
                nonfastforward:1,
-               not_forwardable:1,
+               update:1,
                deletion:1;
        enum {
                REF_STATUS_NONE = 0,
                REF_STATUS_OK,
                REF_STATUS_REJECT_NONFASTFORWARD,
+               REF_STATUS_REJECT_ALREADY_EXISTS,
                REF_STATUS_REJECT_NODELETE,
                REF_STATUS_UPTODATE,
                REF_STATUS_REMOTE_REJECT,