avoid accessing _all_ loose refs in git-show-ref --verify
commit26cdd1e7c7a21b6d71ebc201fc2472a6a68f5ce4
authorJunio C Hamano <junkio@cox.net>
Mon, 18 Dec 2006 02:08:52 +0000 (17 18:08 -0800)
committerJunio C Hamano <junkio@cox.net>
Mon, 18 Dec 2006 02:26:53 +0000 (17 18:26 -0800)
tree58070ab966c87e69050274f8308adab01c789eb7
parented9f7c954c26ec6d517bdca3d8e4b895278d1b2b
avoid accessing _all_ loose refs in git-show-ref --verify

If you want to verify a ref, it is overkill to first read all loose refs
into a linked list, and then check if the desired ref is there.

Signed-off-by: Junio C Hamano <junkio@cox.net>
Acked-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
builtin-show-ref.c