Merge branch 'mh/ref-races'
authorJunio C Hamano <gitster@pobox.com>
Sun, 30 Jun 2013 22:40:01 +0000 (15:40 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sun, 30 Jun 2013 22:40:05 +0000 (15:40 -0700)
"git pack-refs" that races with new ref creation or deletion have
been susceptible to lossage of refs under right conditions, which
has been tightened up.

* mh/ref-races:
for_each_ref: load all loose refs before packed refs
get_packed_ref_cache: reload packed-refs file when it changes
add a stat_validity struct
Extract a struct stat_data from cache_entry
packed_ref_cache: increment refcount when locked
do_for_each_entry(): increment the packed refs cache refcount
refs: manage lifetime of packed refs cache via reference counting
refs: implement simple transactions for the packed-refs file
refs: wrap the packed refs cache in a level of indirection
pack_refs(): split creation of packed refs and entry writing
repack_without_ref(): split list curation and entry writing

1  2 
builtin/ls-files.c
cache.h
read-cache.c
refs.c
Simple merge
diff --cc cache.h
Simple merge
diff --cc read-cache.c
Simple merge
diff --cc refs.c
Simple merge