Skip to content

Commit 96b29bd

Browse files
committed
Merge branch 'sh/enable-preloadindex'
* sh/enable-preloadindex: environment.c: enable core.preloadindex by default
2 parents bb0ced7 + 299e298 commit 96b29bd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Documentation/config.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,9 +621,9 @@ core.preloadindex::
621621
+
622622
This can speed up operations like 'git diff' and 'git status' especially
623623
on filesystems like NFS that have weak caching semantics and thus
624-
relatively high IO latencies. With this set to 'true', Git will do the
624+
relatively high IO latencies. When enabled, Git will do the
625625
index comparison to the filesystem data in parallel, allowing
626-
overlapping IO's.
626+
overlapping IO's. Defaults to true.
627627

628628
core.createObject::
629629
You can set this to 'link', in which case a hardlink followed by

environment.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ char comment_line_char = '#';
7272
int auto_comment_line_char;
7373

7474
/* Parallel index stat data preload? */
75-
int core_preload_index = 0;
75+
int core_preload_index = 1;
7676

7777
/* This is set by setup_git_dir_gently() and/or git_default_config() */
7878
char *git_work_tree_cfg;

0 commit comments

Comments
 (0)