git_mkstemp_mode, xmkstemp_mode: variants of gitmkstemps with mode argument.
[gitweb.git] / builtin-commit.c
index fedcda09d02134a1434098016c3b9829d1185c46..55676fd874466c70445e81c69cf397cd01380aaf 100644 (file)
@@ -1047,7 +1047,7 @@ int cmd_status(int argc, const char **argv, const char *prefix)
                s.pathspec = get_pathspec(prefix, argv);
 
        read_cache();
-       refresh_cache(REFRESH_QUIET|REFRESH_UNMERGED);
+       refresh_index(&the_index, REFRESH_QUIET|REFRESH_UNMERGED, s.pathspec, NULL, NULL);
        s.is_initial = get_sha1(s.reference, sha1) ? 1 : 0;
        s.in_merge = in_merge;
        wt_status_collect(&s);