Merge branch 'sh/enable-preloadindex'
authorJunio C Hamano <gitster@pobox.com>
Mon, 16 Jun 2014 19:18:49 +0000 (12:18 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 16 Jun 2014 19:18:49 +0000 (12:18 -0700)
* sh/enable-preloadindex:
environment.c: enable core.preloadindex by default

1  2 
Documentation/config.txt
environment.c
diff --combined Documentation/config.txt
index 20cb3a25bc6bc77e62fe05c6ce2d1e8e16e2bfea,4b3d965c3de46ea16a36501876170a476ea4e062..9f467d3820a40d1281d29707e98fa16c2bbde63f
@@@ -381,7 -381,7 +381,7 @@@ false), while all other repositories ar
  core.worktree::
        Set the path to the root of the working tree.
        This can be overridden by the GIT_WORK_TREE environment
 -      variable and the '--work-tree' command line option.
 +      variable and the '--work-tree' command-line option.
        The value can be an absolute path or relative to the path to
        the .git directory, which is either specified by --git-dir
        or GIT_DIR, or automatically discovered.
@@@ -489,7 -489,7 +489,7 @@@ core.deltaBaseCacheLimit:
        to avoid unpacking and decompressing frequently used base
        objects multiple times.
  +
 -Default is 16 MiB on all platforms.  This should be reasonable
 +Default is 96 MiB on all platforms.  This should be reasonable
  for all users/operating systems, except on the largest projects.
  You probably do not need to adjust this value.
  +
@@@ -523,7 -523,7 +523,7 @@@ core.askpass:
        environment variable. If not set, fall back to the value of the
        'SSH_ASKPASS' environment variable or, failing that, a simple password
        prompt. The external program shall be given a suitable prompt as
 -      command line argument and write the password on its STDOUT.
 +      command-line argument and write the password on its STDOUT.
  
  core.attributesfile::
        In addition to '.gitattributes' (per-directory) and
@@@ -544,9 -544,6 +544,9 @@@ core.commentchar:
        messages consider a line that begins with this character
        commented, and removes them after the editor returns
        (default '#').
 ++
 +If set to "auto", `git-commit` would select a character that is not
 +the beginning character of any line in existing commit messages.
  
  sequence.editor::
        Text editor used by `git rebase -i` for editing the rebase instruction file.
@@@ -561,19 -558,14 +561,19 @@@ core.pager:
        configuration, then `$PAGER`, and then the default chosen at
        compile time (usually 'less').
  +
 -When the `LESS` environment variable is unset, Git sets it to `FRSX`
 +When the `LESS` environment variable is unset, Git sets it to `FRX`
  (if `LESS` environment variable is set, Git does not change it at
  all).  If you want to selectively override Git's default setting
 -for `LESS`, you can set `core.pager` to e.g. `less -+S`.  This will
 +for `LESS`, you can set `core.pager` to e.g. `less -S`.  This will
  be passed to the shell by Git, which will translate the final
 -command to `LESS=FRSX less -+S`. The environment tells the command
 -to set the `S` option to chop long lines but the command line
 -resets it to the default to fold long lines.
 +command to `LESS=FRX less -S`. The environment does not set the
 +`S` option but the command line does, instructing less to truncate
 +long lines. Similarly, setting `core.pager` to `less -+F` will
 +deactivate the `F` option specified by the environment from the
 +command-line, deactivating the "quit if one screen" behavior of
 +`less`.  One can specifically activate some flags for particular
 +commands: for example, setting `pager.blame` to `less -S` enables
 +line truncation only for `git blame`.
  +
  Likewise, when the `LV` environment variable is unset, Git sets it
  to `-c`.  You can override this setting by exporting `LV` with
@@@ -621,9 -613,9 +621,9 @@@ core.preloadindex:
  +
  This can speed up operations like 'git diff' and 'git status' especially
  on filesystems like NFS that have weak caching semantics and thus
- relatively high IO latencies.  With this set to 'true', Git will do the
+ relatively high IO latencies.  When enabled, Git will do the
  index comparison to the filesystem data in parallel, allowing
- overlapping IO's.
+ overlapping IO's.  Defaults to true.
  
  core.createObject::
        You can set this to 'link', in which case a hardlink followed by
@@@ -1122,10 -1114,6 +1122,10 @@@ format.signature:
        Set this variable to the empty string ("") to suppress
        signature generation.
  
 +format.signaturefile::
 +      Works just like format.signature except the contents of the
 +      file specified by this variable will be used as the signature.
 +
  format.suffix::
        The default for format-patch is to output files with the suffix
        `.patch`. Use this variable to change that suffix (make sure to
@@@ -1336,7 -1324,7 +1336,7 @@@ grep.extendedRegexp:
  gpg.program::
        Use this custom program instead of "gpg" found on $PATH when
        making or verifying a PGP signature. The program must support the
 -      same command line interface as GPG, namely, to verify a detached
 +      same command-line interface as GPG, namely, to verify a detached
        signature, "gpg --verify $file - <$signature" is run, and the
        program is expected to signal a good signature by exiting with
        code 0, and to generate an ascii-armored detached signature, the
@@@ -2305,11 -2293,9 +2305,11 @@@ status.submodulesummary:
        --summary-limit option of linkgit:git-submodule[1]). Please note
        that the summary output command will be suppressed for all
        submodules when `diff.ignoreSubmodules` is set to 'all' or only
 -      for those submodules where `submodule.<name>.ignore=all`. To
 +      for those submodules where `submodule.<name>.ignore=all`. The only
 +      exception to that rule is that status and commit will show staged
 +      submodule changes. To
        also view the summary for ignored submodules you can either use
 -      the --ignore-submodules=dirty command line option or the 'git
 +      the --ignore-submodules=dirty command-line option or the 'git
        submodule summary' command, which shows a similar output but does
        not honor these settings.
  
@@@ -2331,16 -2317,14 +2331,16 @@@ submodule.<name>.branch:
  submodule.<name>.fetchRecurseSubmodules::
        This option can be used to control recursive fetching of this
        submodule. It can be overridden by using the --[no-]recurse-submodules
 -      command line option to "git fetch" and "git pull".
 +      command-line option to "git fetch" and "git pull".
        This setting will override that from in the linkgit:gitmodules[5]
        file.
  
  submodule.<name>.ignore::
        Defines under what circumstances "git status" and the diff family show
        a submodule as modified. When set to "all", it will never be considered
 -      modified, "dirty" will ignore all changes to the submodules work tree and
 +      modified (but it will nonetheless show up in the output of status and
 +      commit when it has been staged), "dirty" will ignore all changes
 +      to the submodules work tree and
        takes only differences between the HEAD of the submodule and the commit
        recorded in the superproject into account. "untracked" will additionally
        let submodules with modified tracked files in their work tree show up.
diff --combined environment.c
index c648ac3d3af1f86889ccc34e7f794683bd1951ea,1c686c9095bc82a056a2e0e5f085b6992cb4c3b0..4dac5e9edd75499ccf52debc847807d2fc180730
@@@ -37,7 -37,7 +37,7 @@@ int core_compression_seen
  int fsync_object_files;
  size_t packed_git_window_size = DEFAULT_PACKED_GIT_WINDOW_SIZE;
  size_t packed_git_limit = DEFAULT_PACKED_GIT_LIMIT;
 -size_t delta_base_cache_limit = 16 * 1024 * 1024;
 +size_t delta_base_cache_limit = 96 * 1024 * 1024;
  unsigned long big_file_threshold = 512 * 1024 * 1024;
  const char *pager_program;
  int pager_use_color = 1;
@@@ -69,10 -69,9 +69,10 @@@ unsigned long pack_size_limit_cfg
   * that is subject to stripspace.
   */
  char comment_line_char = '#';
 +int auto_comment_line_char;
  
  /* Parallel index stat data preload? */
- int core_preload_index = 0;
+ int core_preload_index = 1;
  
  /* This is set by setup_git_dir_gently() and/or git_default_config() */
  char *git_work_tree_cfg;