]> git.ipfire.org Git - thirdparty/git.git/commit - unpack-trees.c
unpack-trees: populate cache-tree on successful merge
authorBrian Degenhardt <bmd@bmdhacks.com>
Tue, 28 Jul 2015 19:30:40 +0000 (15:30 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 Jul 2015 20:43:13 +0000 (13:43 -0700)
commit52fca2184df8398f0ba212cd6a0ec1fb123b7473
treeeb783ea1b263c7105a4b1798e4f4bca68bb0fd99
parent9a3d637541a5b6fcd84b6f5fa057e597d1696460
unpack-trees: populate cache-tree on successful merge

When we unpack trees into an existing index, we discard the old
index and replace it with the new, merged index.  Ensure that this
index has its cache-tree populated.  This will make subsequent git
status and commit commands faster.

Signed-off-by: Brian Degenhardt <bmd@bmdhacks.com>
Signed-off-by: David Turner <dturner@twopensource.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0090-cache-tree.sh
unpack-trees.c