refs: minor restructuring of cached refs data.
authorJunio C Hamano <junkio@cox.net>
Sat, 30 Sep 2006 19:37:37 +0000 (12:37 -0700)
committerJunio C Hamano <junkio@cox.net>
Sat, 30 Sep 2006 22:07:58 +0000 (15:07 -0700)
Once we read packed and loose refs, for_each_ref() and friends
kept using them even after write_ref_sha1() and delete_ref()
changed the refs. This adds invalidate_cached_refs() as a way
to flush the cached information.

Signed-off-by: Junio C Hamano <junkio@cox.net>
No differences found