Code

"git-add -n -u" should not add but just report
[git.git] / builtin-commit.c
index 0baec6db6ac76de81b93f4c990f8347814618be7..924fca1953c155d0cec5ae2a0f53b7c43e8b8c58 100644 (file)
@@ -246,7 +246,7 @@ static char *prepare_index(int argc, const char **argv, const char *prefix)
         */
        if (all || (also && pathspec && *pathspec)) {
                int fd = hold_locked_index(&index_lock, 1);
-               add_files_to_cache(0, also ? prefix : NULL, pathspec);
+               add_files_to_cache(also ? prefix : NULL, pathspec, 0);
                refresh_cache(REFRESH_QUIET);
                if (write_cache(fd, active_cache, active_nr) ||
                    close_lock_file(&index_lock))