diff options
Diffstat (limited to 'pathspec.c')
-rw-r--r-- | pathspec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pathspec.c b/pathspec.c index b6e333965c..d67688bab7 100644 --- a/pathspec.c +++ b/pathspec.c @@ -36,6 +36,8 @@ void add_pathspec_matches_against_index(const struct pathspec *pathspec, num_unmatched++; if (!num_unmatched) return; + /* TODO: audit for interaction with sparse-index. */ + ensure_full_index(istate); for (i = 0; i < istate->cache_nr; i++) { const struct cache_entry *ce = istate->cache[i]; ce_path_match(istate, ce, pathspec, seen); |