Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
refs: document the fields of struct ref_value
author
Michael Haggerty
<mhagger@alum.mit.edu>
Sun, 14 Apr 2013 12:54:17 +0000
(14:54 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 1 May 2013 22:33:09 +0000
(15:33 -0700)
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
89df9c8
)
diff --git
a/refs.c
b/refs.c
index 6b3511ee0beb983e05519aa702494039f1e7cfd8..ed1b4cf9b6140685a55d47fd8abc3526295307f3 100644
(file)
--- a/
refs.c
+++ b/
refs.c
@@
-108,7
+108,19
@@
struct ref_entry;
* (ref_entry->flag & REF_DIR) is zero.
*/
struct ref_value {
* (ref_entry->flag & REF_DIR) is zero.
*/
struct ref_value {
+ /*
+ * The name of the object to which this reference resolves
+ * (which may be a tag object). If REF_ISBROKEN, this is
+ * null. If REF_ISSYMREF, then this is the name of the object
+ * referred to by the last reference in the symlink chain.
+ */
unsigned char sha1[20];
unsigned char sha1[20];
+
+ /*
+ * If REF_KNOWS_PEELED, then this field holds the peeled value
+ * of this reference, or null if the reference is known not to
+ * be peelable.
+ */
unsigned char peeled[20];
};
unsigned char peeled[20];
};