From: Junio C Hamano Date: Fri, 5 Mar 2010 06:25:45 +0000 (-0800) Subject: Merge branch 'jc/maint-status-preload' into maint X-Git-Tag: v1.7.0.2~12 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/6c4ee2244aea924b6d04b4753ca8c7709e8e5f90?ds=inline;hp=-c Merge branch 'jc/maint-status-preload' into maint * jc/maint-status-preload: status: preload index to optimize lstat(2) calls --- 6c4ee2244aea924b6d04b4753ca8c7709e8e5f90 diff --combined builtin-commit.c index 46513bf90b,bb97000320..f4c73442cf --- a/builtin-commit.c +++ b/builtin-commit.c @@@ -41,7 -41,7 +41,7 @@@ static const char implicit_ident_advice "on your username and hostname. Please check that they are accurate.\n" "You can suppress this message by setting them explicitly:\n" "\n" -" git config --global user.name Your Name\n" +" git config --global user.name \"Your Name\"\n" " git config --global user.email you@example.com\n" "\n" "If the identity used for this commit is wrong, you can fix it with:\n" @@@ -1046,7 -1046,7 +1046,7 @@@ int cmd_status(int argc, const char **a 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;