summaryrefslogtreecommitdiff
path: root/refs.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-10-19 13:45:50 -0700
committerJunio C Hamano <gitster@pobox.com>2011-10-19 13:58:15 -0700
commit98ac34b2b1968e16fbf7f6122a53b73c6caaff49 (patch)
tree7d3e9a15ec0968b13d6bed9cd463893249280586 /refs.h
parentff74f7f1187cbf1b46e85ed1bde1f194991f919c (diff)
downloadgit-98ac34b2b1968e16fbf7f6122a53b73c6caaff49.tar.gz
resolve_ref(): expose REF_ISBROKEN flag
Instead of keeping this as an internal API, let the callers find out the reason why resolve_ref() returned NULL is not because there was no such file in $GIT_DIR but because a file was corrupt. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.h')
-rw-r--r--refs.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/refs.h b/refs.h
index d5ac133336..e4578856d7 100644
--- a/refs.h
+++ b/refs.h
@@ -10,8 +10,9 @@ struct ref_lock {
int force_write;
};
-#define REF_ISSYMREF 01
-#define REF_ISPACKED 02
+#define REF_ISSYMREF 0x01
+#define REF_ISPACKED 0x02
+#define REF_ISBROKEN 0x04
/*
* Calls the specified function for each ref file until it returns nonzero,