aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-03-04 22:25:45 -0800
committerJunio C Hamano <gitster@pobox.com>2010-03-04 22:25:45 -0800
commit6c4ee2244aea924b6d04b4753ca8c7709e8e5f90 (patch)
tree205a63b657d9b7e2fa370058141de3971ee0f690
parent801bad3ba4eb5014d402201c85c61a969436adf0 (diff)
parent149794dd1db18b22f4df94ef13cf61520d7be1d8 (diff)
downloadgit-6c4ee2244aea924b6d04b4753ca8c7709e8e5f90.tar.gz
git-6c4ee2244aea924b6d04b4753ca8c7709e8e5f90.tar.xz
Merge branch 'jc/maint-status-preload' into maint
* jc/maint-status-preload: status: preload index to optimize lstat(2) calls
-rw-r--r--builtin-commit.c2
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;