summaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2013-04-14 12:54:16 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-05-01 22:33:09 (GMT)
commit89df9c84e478b7e6055a93cf45cf37027d25b3e4 (patch)
tree06f7b57c0af1cffea6ea39edb80ce04f7ac642d8 /refs.c
parent27ec394a9701675762f02e9af464be2c297c6cf1 (diff)
downloadgit-89df9c84e478b7e6055a93cf45cf37027d25b3e4.zip
git-89df9c84e478b7e6055a93cf45cf37027d25b3e4.tar.gz
git-89df9c84e478b7e6055a93cf45cf37027d25b3e4.tar.bz2
refs: document flags constants REF_*
Document the bits that can appear in the "flags" parameter passed to an each_ref_function and/or in the ref_entry::flag field. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.c')
-rw-r--r--refs.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/refs.c b/refs.c
index 6770e96..6b3511e 100644
--- a/refs.c
+++ b/refs.c
@@ -157,7 +157,17 @@ struct ref_dir {
struct ref_entry **entries;
};
-/* ISSYMREF=0x01, ISPACKED=0x02, and ISBROKEN=0x04 are public interfaces */
+/*
+ * Bit values for ref_entry::flag. REF_ISSYMREF=0x01,
+ * REF_ISPACKED=0x02, and REF_ISBROKEN=0x04 are public values; see
+ * refs.h.
+ */
+
+/*
+ * The field ref_entry->u.value.peeled of this value entry contains
+ * the correct peeled value for the reference, which might be
+ * null_sha1 if the reference is not a tag or if it is broken.
+ */
#define REF_KNOWS_PEELED 0x08
/* ref_entry represents a directory of references */