diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-10-19 13:45:50 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-10-19 13:58:15 -0700 |
commit | 98ac34b2b1968e16fbf7f6122a53b73c6caaff49 (patch) | |
tree | 7d3e9a15ec0968b13d6bed9cd463893249280586 /refs.h | |
parent | ff74f7f1187cbf1b46e85ed1bde1f194991f919c (diff) | |
download | git-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.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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, |