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

2014-07-08 Thread Junio C Hamano
David Turner writes: > @@ -16,8 +16,26 @@ cmp_cache_tree () { > # We don't bother with actually checking the SHA1: > # test-dump-cache-tree already verifies that all existing data is > # correct. > -test_shallow_cache_tree () { > - printf "SHA (%d entries, 0 subtrees)\n" $(git ls-files|wc

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

2014-07-07 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