summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorDavid Turner <dturner@twopensource.com>2017-05-08 09:41:42 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-05-20 09:26:45 (GMT)
commitedf3b90553f5c667cd8cb99aa809305470ba3bd7 (patch)
treeef9692e36fe67530a48b599bd8d715a3cd24c77b /cache.h
parent4fa66c85f11bc5a541462ca5ae3246aa0ce02e74 (diff)
downloadgit-edf3b90553f5c667cd8cb99aa809305470ba3bd7.zip
git-edf3b90553f5c667cd8cb99aa809305470ba3bd7.tar.gz
git-edf3b90553f5c667cd8cb99aa809305470ba3bd7.tar.bz2
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>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index e1f0e18..d41336d 100644
--- a/cache.h
+++ b/cache.h
@@ -597,6 +597,7 @@ extern int read_index_unmerged(struct index_state *);
#define CLOSE_LOCK (1 << 1)
extern int write_locked_index(struct index_state *, struct lock_file *lock, unsigned flags);
extern int discard_index(struct index_state *);
+extern void move_index_extensions(struct index_state *dst, struct index_state *src);
extern int unmerged_index(const struct index_state *);
extern int verify_path(const char *path);
extern int strcmp_offset(const char *s1, const char *s2, size_t *first_change);