Skip to content

Commit

Permalink
Merge branch 'jc/maint-status-preload' into maint
Browse files Browse the repository at this point in the history
* jc/maint-status-preload:
  status: preload index to optimize lstat(2) calls
  • Loading branch information
Junio C Hamano committed Mar 5, 2010
2 parents 801bad3 + 149794d commit 6c4ee22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin-commit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6c4ee22

Please sign in to comment.