convert add_files_to_cache to take struct pathspec
[git/git.git] / builtin / commit.c
index d34baab..3b4dd60 100644 (file)
@@ -336,7 +336,7 @@ static char *prepare_index(int argc, const char **argv, const char *prefix,
         */
        if (all || (also && pathspec.nr)) {
                fd = hold_locked_index(&index_lock, 1);
-               add_files_to_cache(also ? prefix : NULL, pathspec.raw, 0);
+               add_files_to_cache(also ? prefix : NULL, &pathspec, 0);
                refresh_cache_or_die(refresh_flags);
                update_main_cache_tree(WRITE_TREE_SILENT);
                if (write_cache(fd, active_cache, active_nr) ||