]> git.ipfire.org Git - thirdparty/git.git/commit - cache-tree.c
cache-tree: verify valid cache-tree in the test suite
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sat, 18 Aug 2018 14:41:28 +0000 (16:41 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 18 Aug 2018 16:47:46 +0000 (09:47 -0700)
commit4592e6080ff0f9eb0218162be0e40b2d6abc979a
tree4b9ec1726800a8990ec49caa31c03f7536f9fca8
parent5697ca9aa562c1f0b624b4f273685351734162e3
cache-tree: verify valid cache-tree in the test suite

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 <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache-tree.c
cache-tree.h
read-cache.c
t/test-lib.sh
unpack-trees.c