Re: [PATCH 4/4 v6] cache-tree: Write updated cache-tree after commit

2014-07-11 Thread David Turner
On Fri, 2014-07-11 at 08:52 -0700, Junio C Hamano wrote: > David Turner writes: > > > @@ -16,8 +16,34 @@ cmp_cache_tree () { > > # We don't bother with actually checking the SHA1: > > # test-dump-cache-tree already verifies that all existing data is > > # correct. > > Is this statement now st

Re: [PATCH 4/4 v6] cache-tree: Write updated cache-tree after commit

2014-07-11 Thread Junio C Hamano
David Turner writes: > @@ -16,8 +16,34 @@ cmp_cache_tree () { > # We don't bother with actually checking the SHA1: > # test-dump-cache-tree already verifies that all existing data is > # correct. Is this statement now stale and needs to be removed? > -test_shallow_cache_tree () { > - pri

[PATCH 4/4 v6] cache-tree: Write updated cache-tree after commit

2014-07-10 Thread David Turner
During the commit process, update the cache-tree. Write this updated cache-tree so that it's ready for subsequent commands. Add test code which demonstrates that git commit now writes the cache tree. Make all tests test the entire cache-tree, not just the root level. Signed-off-by: David Turner