summaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2015-02-12 12:12:12 +0100
committerJunio C Hamano <gitster@pobox.com>2015-02-12 11:42:53 -0800
commit581d4e0cdbe9526c122b9d0835f951e478f82448 (patch)
tree3f8b75311288e5eec7879fcd87f2f7fc2b3334a7 /refs.c
parent18d0fec24027ac226dc2c4df2b955eef2a16462a (diff)
downloadgit-581d4e0cdbe9526c122b9d0835f951e478f82448.tar.gz
refs: move REF_DELETING to refs.c
It is only used internally now. Document it a little bit better, too. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Reviewed-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.c')
-rw-r--r--refs.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/refs.c b/refs.c
index ab2f2a92cd..5e6355c930 100644
--- a/refs.c
+++ b/refs.c
@@ -35,6 +35,12 @@ static unsigned char refname_disposition[256] = {
};
/*
+ * Flag passed to lock_ref_sha1_basic() telling it to tolerate broken
+ * refs (i.e., because the reference is about to be deleted anyway).
+ */
+#define REF_DELETING 0x02
+
+/*
* Used as a flag to ref_transaction_delete when a loose ref is being
* pruned.
*/