]> git.ipfire.org Git - thirdparty/git.git/commit - cache.h
unpack-trees: preserve index extensions
authorDavid Turner <dturner@twopensource.com>
Mon, 8 May 2017 09:41:42 +0000 (11:41 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 20 May 2017 09:26:45 +0000 (18:26 +0900)
commitedf3b90553f5c667cd8cb99aa809305470ba3bd7
treeef9692e36fe67530a48b599bd8d715a3cd24c77b
parent4fa66c85f11bc5a541462ca5ae3246aa0ce02e74
unpack-trees: preserve index extensions

Make git checkout (and other unpack_tree operations) preserve the
untracked cache. This is valuable for two reasons:

1. Often, an unpack_tree operation will not touch large parts of the
working tree, and thus most of the untracked cache will continue to be
valid.

2. Even if the untracked cache were entirely invalidated by such an
operation, the user has signaled their intention to have such a cache,
and we don't want to throw it away.

[jes: backed out the watchman-specific parts]

Signed-off-by: David Turner <dturner@twopensource.com>
Signed-off-by: Ben Peart <benpeart@microsoft.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
read-cache.c
t/t7063-status-untracked-cache.sh
unpack-trees.c