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>
This commit is contained in:
Nguyễn Thái Ngọc Duy
2009-08-20 20:47:06 +07:00
committed by Junio C Hamano
parent ed5336a754
commit e663db2f44
2 changed files with 11 additions and 1 deletions

View File

@ -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
*/