From: Stefan Beller Date: Tue, 02 May 2017 22:23:20 GMT Subject: [PATCH 22/24] cache.h: drop ce_modified Message-ID: <20170502222322.21055-23-sbeller@google.com> In-Reply-To: <20170502222322.21055-1-sbeller@google.com> Signed-off-by: Stefan Beller --- builtin/ls-files.c | 2 +- cache.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/builtin/ls-files.c b/builtin/ls-files.c index 3507490d3e..89fac7ddf5 100644 --- a/builtin/ls-files.c +++ b/builtin/ls-files.c @@ -369,7 +369,7 @@ static void show_files(struct dir_struct *dir) err = lstat(ce->name, &st); if (show_deleted && err) show_ce_entry(tag_removed, ce); - if (show_modified && ce_modified(ce, &st, 0)) + if (show_modified && ie_modified(&the_index, ce, &st, 0)) show_ce_entry(tag_modified, ce); } } diff --git a/cache.h b/cache.h index 23c9c1697c..c34fc4fd40 100644 --- a/cache.h +++ b/cache.h @@ -355,7 +355,6 @@ extern void free_name_hash(struct index_state *istate); #ifndef NO_THE_INDEX_COMPATIBILITY_MACROS #define ce_match_stat(ce, st, options) ie_match_stat(&the_index, (ce), (st), (options)) -#define ce_modified(ce, st, options) ie_modified(&the_index, (ce), (st), (options)) #endif enum object_type { -- 2.13.0.rc1.39.ga6db8bfa24