diff options
author | Brad King <brad.king@kitware.com> | 2014-01-27 15:45:07 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-02-24 23:31:10 +0100 |
commit | 2e2e7ec1ef567ac0a4ad8294ada15836661e6589 (patch) | |
tree | 7249fb30c8d7c927de067363bb80524dcea93e7f /cache.h | |
parent | t3030-merge-recursive: test known breakage with empty work tree (diff) | |
download | git-2e2e7ec1ef567ac0a4ad8294ada15836661e6589.tar.xz git-2e2e7ec1ef567ac0a4ad8294ada15836661e6589.zip |
read-cache.c: refactor --ignore-missing implementation
Move lstat ENOENT handling from refresh_index to refresh_cache_ent and
activate it with a new CE_MATCH_IGNORE_MISSING option. This will allow
other call paths into refresh_cache_ent to use the feature.
Signed-off-by: Brad King <brad.king@kitware.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -488,6 +488,8 @@ extern void *read_blob_data_from_index(struct index_state *, const char *, unsig #define CE_MATCH_RACY_IS_DIRTY 02 /* do stat comparison even if CE_SKIP_WORKTREE is true */ #define CE_MATCH_IGNORE_SKIP_WORKTREE 04 +/* ignore non-existent files during stat update */ +#define CE_MATCH_IGNORE_MISSING 0x08 extern int ie_match_stat(const struct index_state *, const struct cache_entry *, struct stat *, unsigned int); extern int ie_modified(const struct index_state *, const struct cache_entry *, struct stat *, unsigned int); |