Code

resolve_ref(): expose REF_ISBROKEN flag
authorJunio C Hamano <gitster@pobox.com>
Wed, 19 Oct 2011 20:45:50 +0000 (13:45 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 19 Oct 2011 20:58:15 +0000 (13:58 -0700)
commit98ac34b2b1968e16fbf7f6122a53b73c6caaff49
tree7d3e9a15ec0968b13d6bed9cd463893249280586
parentff74f7f1187cbf1b46e85ed1bde1f194991f919c
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>
refs.c
refs.h