diff --git a/builtin-commit.c b/builtin-commit.c
index 46513bf90b9caf95f4c1b0b902dfc69feea38d1f..f4c73442cfba9483a826dcfbf68f5466d43e8351 100644 (file)
--- a/builtin-commit.c
+++ b/builtin-commit.c
if (*argv)
s.pathspec = get_pathspec(prefix, argv);
- read_cache();
+ read_cache_preload(s.pathspec);
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;