ie_match_stat(): do not ignore skip-worktree bit with CE_MATCH_IGNORE_VALID
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Mon, 14 Dec 2009 11:43:58 +0000 (18:43 +0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 14 Dec 2009 22:03:58 +0000 (14:03 -0800)
commit56cac48c3550de88d71b3944576d44337261d71b
tree80e3e42d8daeb595948c554f754aa6e6ccfaeebe
parentbbbe508d771f6a4c65fea43343597ecfa1eb540e
ie_match_stat(): do not ignore skip-worktree bit with CE_MATCH_IGNORE_VALID

Previously CE_MATCH_IGNORE_VALID flag is used by both valid and
skip-worktree bits. While the two bits have similar behaviour, sharing
this flag means "git update-index --really-refresh" will ignore
skip-worktree while it should not. Instead another flag is
introduced to ignore skip-worktree bit, CE_MATCH_IGNORE_VALID only
applies to valid bit.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-apply.c
cache.h
entry.c
read-cache.c
unpack-trees.c