Merge branch 'nd/unpack-trees-with-cache-tree'
[gitweb.git] / builtin / commit.c
index 213fca2d8ecdf726661e6b31b7ec6cb004acb2f7..fa3e53232d2d24564a2de6370b3bdef72a153735 100644 (file)
@@ -33,6 +33,7 @@
 #include "sequencer.h"
 #include "mailmap.h"
 #include "help.h"
+#include "commit-reach.h"
 
 static const char * const builtin_commit_usage[] = {
        N_("git commit [<options>] [--] <pathspec>..."),
@@ -251,7 +252,7 @@ static int list_paths(struct string_list *list, const char *with_tree,
 
                if (ce->ce_flags & CE_UPDATE)
                        continue;
-               if (!ce_path_match(ce, pattern, m))
+               if (!ce_path_match(&the_index, ce, pattern, m))
                        continue;
                item = string_list_insert(list, ce->name);
                if (ce_skip_worktree(ce))