]> git.ipfire.org Git - thirdparty/git.git/commit - refs.c
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)
commit5e290ff75a0e6996f297dc438aceb8e1f29a20a5
tree37685be9453b9e9ca2cc6b7af66e5cf1b305e310
parentbc7127ef0f81d996e9691c6c898b926867aae89f
refs: minor restructuring of cached refs data.

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>
refs.c