summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-01-05 23:41:34 -0800
committerJunio C Hamano <gitster@pobox.com>2013-01-05 23:41:34 -0800
commit9a2c83d24cb547c49e320d2498863b0ef297acd4 (patch)
tree1fbaef7603b7ec12260e95f0543db36f2fb432c5 /cache.h
parent76523cac2688b1c9e8b56bd2c1a7a0ae1370e905 (diff)
parentb450568209c8ae270d26ee7fda2e4687ad8a5327 (diff)
downloadgit-9a2c83d24cb547c49e320d2498863b0ef297acd4.tar.gz
Merge branch 'cr/push-force-tag-update'
Require "-f" for push to update a tag, even if it is a fast-forward. * cr/push-force-tag-update: push: allow already-exists advice to be disabled push: rename config variable for more general use push: cleanup push rules comment push: clarify rejection of update to non-commit-ish push: require force for annotated tags push: require force for refs under refs/tags/ push: flag updates that require force push: keep track of "update" state separately push: add advice for rejected tag reference push: return reject reasons as a bitset
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/cache.h b/cache.h
index 843689b68f..8f89f17a0c 100644
--- a/cache.h
+++ b/cache.h
@@ -1003,14 +1003,19 @@ 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,