Browse Source

Merge branch 'jc/maint-status-preload' into maint

* jc/maint-status-preload:
  status: preload index to optimize lstat(2) calls
maint
Junio C Hamano 15 years ago
parent
commit
6c4ee2244a
  1. 2
      builtin-commit.c

2
builtin-commit.c

@ -1046,7 +1046,7 @@ int cmd_status(int argc, const char **argv, const char *prefix)
if (*argv) if (*argv)
s.pathspec = get_pathspec(prefix, 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); refresh_index(&the_index, REFRESH_QUIET|REFRESH_UNMERGED, s.pathspec, NULL, NULL);
s.is_initial = get_sha1(s.reference, sha1) ? 1 : 0; s.is_initial = get_sha1(s.reference, sha1) ? 1 : 0;
s.in_merge = in_merge; s.in_merge = in_merge;

Loading…
Cancel
Save