diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-03-02 12:44:07 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-03-02 12:44:07 -0800 |
commit | c673764dde8520e9d46f71882f0d026dfde8bdeb (patch) | |
tree | ee53e32e2eab5d8012ef44ee8079e0b6e546d17a | |
parent | 8acd141bb5cd4155d849fbfb3b74eb509608cd15 (diff) | |
parent | 149794dd1db18b22f4df94ef13cf61520d7be1d8 (diff) | |
download | git-c673764dde8520e9d46f71882f0d026dfde8bdeb.tar.gz git-c673764dde8520e9d46f71882f0d026dfde8bdeb.tar.xz |
Merge branch 'jc/maint-status-preload'
* jc/maint-status-preload:
status: preload index to optimize lstat(2) calls
-rw-r--r-- | builtin-commit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-commit.c b/builtin-commit.c index 46513bf90..f4c73442c 100644 --- a/builtin-commit.c +++ b/builtin-commit.c @@ -1046,7 +1046,7 @@ int cmd_status(int argc, const char **argv, const char *prefix) 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; |