X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-commit.c;fp=builtin-commit.c;h=d5d8eb68cc4dccd0f9f0e634b0d402277933fcfc;hb=688cd6d2b9335f2ac20d02996215a0e6da1779b5;hp=592b10396d1d6aa25d5d1c0aa27556c93c219877;hpb=1f73566af5bec28cd8489c6139a9ede95817349c;p=git.git diff --git a/builtin-commit.c b/builtin-commit.c index 592b10396..d5d8eb68c 100644 --- a/builtin-commit.c +++ b/builtin-commit.c @@ -1023,7 +1023,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);