summaryrefslogtreecommitdiff
path: root/refs.h
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2017-11-05 08:42:06 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-11-06 01:31:08 (GMT)
commit91774afcc30c7e8ffdf7b3e587d52c340684364f (patch)
tree633fbecffd7621fd229c49e01c6feef1c57301f9 /refs.h
parent5ac95fee3d6f77867a627a713f9aa72dc32be18f (diff)
downloadgit-91774afcc30c7e8ffdf7b3e587d52c340684364f.zip
git-91774afcc30c7e8ffdf7b3e587d52c340684364f.tar.gz
git-91774afcc30c7e8ffdf7b3e587d52c340684364f.tar.bz2
refs: rename constant `REF_NODEREF` to `REF_NO_DEREF`
Even after working with this code for years, I still see this constant name as "ref node ref". Rename it to make it's meaning clearer. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.h')
-rw-r--r--refs.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/refs.h b/refs.h
index 261d46c..d396012 100644
--- a/refs.h
+++ b/refs.h
@@ -476,7 +476,7 @@ struct ref_transaction *ref_transaction_begin(struct strbuf *err);
* transaction.
*
* flags -- flags affecting the update, passed to
- * update_ref_lock(). Possible flags: REF_NODEREF,
+ * update_ref_lock(). Possible flags: REF_NO_DEREF,
* REF_FORCE_CREATE_REFLOG. See those constants for more
* information.
*
@@ -504,7 +504,7 @@ struct ref_transaction *ref_transaction_begin(struct strbuf *err);
* If this flag is not specified, then symbolic references are
* dereferenced and the update is applied to the referent.
*/
-#define REF_NODEREF (1 << 0)
+#define REF_NO_DEREF (1 << 0)
/*
* Force the creation of a reflog for this reference, even if it
@@ -517,7 +517,7 @@ struct ref_transaction *ref_transaction_begin(struct strbuf *err);
* ref_transaction_update() and friends:
*/
#define REF_TRANSACTION_UPDATE_ALLOWED_FLAGS \
- (REF_NODEREF | REF_FORCE_CREATE_REFLOG)
+ (REF_NO_DEREF | REF_FORCE_CREATE_REFLOG)
/*
* Add a reference update to transaction. `new_oid` is the value that