author | Junio C Hamano <junkio@cox.net> | |
Sat, 30 Sep 2006 19:37:37 +0000 (12:37 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sat, 30 Sep 2006 22:07:58 +0000 (15:07 -0700) | ||
commit | 5e290ff75a0e6996f297dc438aceb8e1f29a20a5 | |
tree | 37685be9453b9e9ca2cc6b7af66e5cf1b305e310 | tree | snapshot |
parent | bc7127ef0f81d996e9691c6c898b926867aae89f | commit | diff |
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>
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 | diff | blob | history |