Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jc/maint-status-preload'
author
Junio C Hamano
<gitster@pobox.com>
Tue, 2 Mar 2010 20:44:07 +0000
(12:44 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 2 Mar 2010 20:44:07 +0000
(12:44 -0800)
* jc/maint-status-preload:
status: preload index to optimize lstat(2) calls
builtin-commit.c
patch
|
blob
|
history
raw
(from parent 1:
8acd141
)
diff --git
a/builtin-commit.c
b/builtin-commit.c
index 46513bf90b9caf95f4c1b0b902dfc69feea38d1f..f4c73442cfba9483a826dcfbf68f5466d43e8351 100644
(file)
--- 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;