aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2009-08-20 20:47:06 +0700
committerJunio C Hamano <gitster@pobox.com>2009-08-23 17:13:33 -0700
commite663db2f446b84bfe39b4dcb3d26b33826d52c1a (patch)
treefcafac98822879b0acadb8768ab822dc48bb7330 /cache.h
parented5336a7541e19b267de53afc8d15cffdbde8286 (diff)
downloadgit-e663db2f446b84bfe39b4dcb3d26b33826d52c1a.tar.gz
git-e663db2f446b84bfe39b4dcb3d26b33826d52c1a.tar.xz
unpack-trees(): add CE_WT_REMOVE to remove on worktree alone
CE_REMOVE now removes both worktree and index versions. Sparse checkout must be able to remove worktree version while keep the index intact when checkout area is narrowed. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index f266246ca..d3f81a1c7 100644
--- a/cache.h
+++ b/cache.h
@@ -177,6 +177,9 @@ struct cache_entry {
#define CE_HASHED (0x100000)
#define CE_UNHASHED (0x200000)
+/* Only remove in work directory, not index */
+#define CE_WT_REMOVE (0x400000)
+
/*
* Extended on-disk flags
*/