Re: [PATCH v5 7/7] cache-tree: verify valid cache-tree in the test suite

2018-08-18 Thread Elijah Newren
On Sat, Aug 18, 2018 at 7:41 AM Nguyễn Thái Ngọc Duy wrote: ... > diff --git a/read-cache.c b/read-cache.c > index 5ce40f39b3..41f313bc9e 100644 > --- a/read-cache.c > +++ b/read-cache.c > @@ -2744,6 +2744,9 @@ int write_locked_index(struct index_state *istate, > struct lock_file *lock, >

[PATCH v5 7/7] cache-tree: verify valid cache-tree in the test suite

2018-08-18 Thread Nguyễn Thái Ngọc Duy
This makes sure that cache-tree is consistent with the index. The main purpose is to catch potential problems by saving the index in unpack_trees() but the line in write_index() would also help spot missing invalidation in other code. Signed-off-by: Nguyễn Thái Ngọc Duy --- cache-tree.c | 78 +