the working copy are ignored; useful on broken filesystems like FAT.
See gitlink:git-update-index[1]. True by default.
+core.quotepath::
+ The commands that output paths (e.g. `ls-files`,
+ `diff`), when not given the `-z` option, will quote
+ "unusual" characters in the pathname by enclosing the
+ pathname in a double-quote pair and with backslashes the
+ same way strings in C source code are quoted. If this
+ variable is set to false, the bytes higher than 0x80 are
+ not quoted but output as verbatim. Note that double
+ quote, backslash and control characters are always
+ quoted without `-z` regardless of the setting of this
+ variable.
+
core.autocrlf::
If true, makes git convert `CRLF` at the end of lines in text files to
`LF` when reading from the filesystem, and convert in reverse when
false), while all other repositories are assumed to be bare (bare
= true).
+core.worktree::
+ Set the path to the working tree. The value will not be
+ used in combination with repositories found automatically in
+ a .git directory (i.e. $GIT_DIR is not set).
+ This can be overriden by the GIT_WORK_TREE environment
+ variable and the '--work-tree' command line option.
+
core.logAllRefUpdates::
Updates to a ref <ref> is logged to the file
"$GIT_DIR/logs/<ref>", by appending the new and old
If there is need for such substitution then the whole
pathname is put in double quotes.
+The similarity index is the percentage of unchanged lines, and
+the dissimilarity index is the percentage of changed lines. It
+is a rounded down integer, followed by a percent sign. The
+similarity index value of 100% is thus reserved for two equal
+files, while 100% dissimilarity means that no line from the old
+file made it into the new one.
+
combined diff format
--------------------
<h2>SYNOPSIS</h2>\r
<div class="sectionbody">\r
<div class="verseblock">\r
-<div class="content"><em>git-config</em> [--system | --global] [-z|--null] name [value [value_regex]]\r
-<em>git-config</em> [--system | --global] --add name value\r
-<em>git-config</em> [--system | --global] --replace-all name [value [value_regex]]\r
+<div class="content"><em>git-config</em> [--system | --global] [type] [-z|--null] name [value [value_regex]]\r
+<em>git-config</em> [--system | --global] [type] --add name value\r
+<em>git-config</em> [--system | --global] [type] --replace-all name [value [value_regex]]\r
<em>git-config</em> [--system | --global] [type] [-z|--null] --get name [value_regex]\r
<em>git-config</em> [--system | --global] [type] [-z|--null] --get-all name [value_regex]\r
<em>git-config</em> [--system | --global] [type] [-z|--null] --get-regexp name_regex [value_regex]\r
<p>The type specifier can be either <em>--int</em> or <em>--bool</em>, which will make\r
<em>git-config</em> ensure that the variable(s) are of the given type and\r
convert the value to the canonical form (simple decimal number for int,\r
-a "true" or "false" string for bool). Type specifiers currently only\r
-take effect for reading operations. If no type specifier is passed,\r
+a "true" or "false" string for bool). If no type specifier is passed,\r
no checks or transformations are performed on the value.</p>\r
<p>This command will fail if:</p>\r
<ol>\r
</p>\r
</dd>\r
<dt>\r
+core.quotepath\r
+</dt>\r
+<dd>\r
+<p>\r
+ The commands that output paths (e.g. <tt>ls-files</tt>,\r
+ <tt>diff</tt>), when not given the <tt>-z</tt> option, will quote\r
+ "unusual" characters in the pathname by enclosing the\r
+ pathname in a double-quote pair and with backslashes the\r
+ same way strings in C source code are quoted. If this\r
+ variable is set to false, the bytes higher than 0x80 are\r
+ not quoted but output as verbatim. Note that double\r
+ quote, backslash and control characters are always\r
+ quoted without <tt>-z</tt> regardless of the setting of this\r
+ variable.\r
+</p>\r
+</dd>\r
+<dt>\r
core.autocrlf\r
</dt>\r
<dd>\r
= true).</p>\r
</dd>\r
<dt>\r
+core.worktree\r
+</dt>\r
+<dd>\r
+<p>\r
+ Set the path to the working tree. The value will not be\r
+ used in combination with repositories found automatically in\r
+ a .git directory (i.e. $GIT_DIR is not set).\r
+ This can be overriden by the GIT_WORK_TREE environment\r
+ variable and the <em>--work-tree</em> command line option.\r
+</p>\r
+</dd>\r
+<dt>\r
core.logAllRefUpdates\r
</dt>\r
<dd>\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 27-Jun-2007 07:14:34 UTC\r
+Last updated 02-Jul-2007 00:16:57 UTC\r
</div>\r
</div>\r
</body>\r
SYNOPSIS
--------
[verse]
-'git-config' [--system | --global] [-z|--null] name [value [value_regex]]
-'git-config' [--system | --global] --add name value
-'git-config' [--system | --global] --replace-all name [value [value_regex]]
+'git-config' [--system | --global] [type] [-z|--null] name [value [value_regex]]
+'git-config' [--system | --global] [type] --add name value
+'git-config' [--system | --global] [type] --replace-all name [value [value_regex]]
'git-config' [--system | --global] [type] [-z|--null] --get name [value_regex]
'git-config' [--system | --global] [type] [-z|--null] --get-all name [value_regex]
'git-config' [--system | --global] [type] [-z|--null] --get-regexp name_regex [value_regex]
The type specifier can be either '--int' or '--bool', which will make
'git-config' ensure that the variable(s) are of the given type and
convert the value to the canonical form (simple decimal number for int,
-a "true" or "false" string for bool). Type specifiers currently only
-take effect for reading operations. If no type specifier is passed,
+a "true" or "false" string for bool). If no type specifier is passed,
no checks or transformations are performed on the value.
This command will fail if:
</p>\r
</li>\r
</ol>\r
+<p>The similarity index is the percentage of unchanged lines, and\r
+the dissimilarity index is the percentage of changed lines. It\r
+is a rounded down integer, followed by a percent sign. The\r
+similarity index value of 100% is thus reserved for two equal\r
+files, while 100% dissimilarity means that no line from the old\r
+file made it into the new one.</p>\r
</div>\r
<h2>combined diff format</h2>\r
<div class="sectionbody">\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 16-Jun-2007 09:49:00 UTC\r
+Last updated 02-Jul-2007 00:16:57 UTC\r
</div>\r
</div>\r
</body>\r
</p>\r
</li>\r
</ol>\r
+<p>The similarity index is the percentage of unchanged lines, and\r
+the dissimilarity index is the percentage of changed lines. It\r
+is a rounded down integer, followed by a percent sign. The\r
+similarity index value of 100% is thus reserved for two equal\r
+files, while 100% dissimilarity means that no line from the old\r
+file made it into the new one.</p>\r
</div>\r
<h2>combined diff format</h2>\r
<div class="sectionbody">\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 16-Jun-2007 09:49:00 UTC\r
+Last updated 02-Jul-2007 00:16:58 UTC\r
</div>\r
</div>\r
</body>\r
</p>\r
</li>\r
</ol>\r
+<p>The similarity index is the percentage of unchanged lines, and\r
+the dissimilarity index is the percentage of changed lines. It\r
+is a rounded down integer, followed by a percent sign. The\r
+similarity index value of 100% is thus reserved for two equal\r
+files, while 100% dissimilarity means that no line from the old\r
+file made it into the new one.</p>\r
</div>\r
<h2>combined diff format</h2>\r
<div class="sectionbody">\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 21-Jun-2007 00:34:59 UTC\r
+Last updated 02-Jul-2007 00:16:59 UTC\r
</div>\r
</div>\r
</body>\r
</dt>\r
<dd>\r
<p>\r
- Return "true" if we are in the git directory, otherwise "false".\r
- Some commands require to be run in a working directory.\r
+ When the current working directory is below the repository\r
+ directory print "true", otherwise "false".\r
+</p>\r
+</dd>\r
+<dt>\r
+--is-inside-work-tree\r
+</dt>\r
+<dd>\r
+<p>\r
+ When the current working directory is inside the work tree of the\r
+ repository print "true", otherwise "false".\r
+</p>\r
+</dd>\r
+<dt>\r
+--is-bare-repository\r
+</dt>\r
+<dd>\r
+<p>\r
+ When the repository is bare print "true", otherwise "false".\r
</p>\r
</dd>\r
<dt>\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 21-Jun-2007 00:35:00 UTC\r
+Last updated 02-Jul-2007 00:16:59 UTC\r
</div>\r
</div>\r
</body>\r
Show `$GIT_DIR` if defined else show the path to the .git directory.
--is-inside-git-dir::
- Return "true" if we are in the git directory, otherwise "false".
- Some commands require to be run in a working directory.
+ When the current working directory is below the repository
+ directory print "true", otherwise "false".
+
+--is-inside-work-tree::
+ When the current working directory is inside the work tree of the
+ repository print "true", otherwise "false".
+
+--is-bare-repository::
+ When the repository is bare print "true", otherwise "false".
--short, --short=number::
Instead of outputting the full SHA1 values of object names try to
<div class="sectionbody">\r
<div class="verseblock">\r
<div class="content"><em>git</em> [--version] [--exec-path[=GIT_EXEC_PATH]] [-p|--paginate]\r
- [--bare] [--git-dir=GIT_DIR] [--help] COMMAND [ARGS]</div></div>\r
+ [--bare] [--git-dir=GIT_DIR] [--work-tree=GIT_WORK_TREE]\r
+ [--help] COMMAND [ARGS]</div></div>\r
</div>\r
<h2>DESCRIPTION</h2>\r
<div class="sectionbody">\r
</p>\r
</dd>\r
<dt>\r
+--work-tree=<path>\r
+</dt>\r
+<dd>\r
+<p>\r
+ Set the path to the working tree. The value will not be\r
+ used in combination with repositories found automatically in\r
+ a .git directory (i.e. $GIT_DIR is not set).\r
+ This can also be controlled by setting the GIT_WORK_TREE\r
+ environment variable and the core.worktree configuration\r
+ variable.\r
+</p>\r
+</dd>\r
+<dt>\r
--bare\r
</dt>\r
<dd>\r
for the base of the repository.\r
</p>\r
</dd>\r
+<dt>\r
+<em>GIT_WORK_TREE</em>\r
+</dt>\r
+<dd>\r
+<p>\r
+ Set the path to the working tree. The value will not be\r
+ used in combination with repositories found automatically in\r
+ a .git directory (i.e. $GIT_DIR is not set).\r
+ This can also be controlled by the <em>--work-tree</em> command line\r
+ option and the core.worktree configuration variable.\r
+</p>\r
+</dd>\r
</dl>\r
<h3>git Commits</h3>\r
<dl>\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 01-Jul-2007 06:34:01 UTC\r
+Last updated 02-Jul-2007 00:17:00 UTC\r
</div>\r
</div>\r
</body>\r
--------
[verse]
'git' [--version] [--exec-path[=GIT_EXEC_PATH]] [-p|--paginate]
- [--bare] [--git-dir=GIT_DIR] [--help] COMMAND [ARGS]
+ [--bare] [--git-dir=GIT_DIR] [--work-tree=GIT_WORK_TREE]
+ [--help] COMMAND [ARGS]
DESCRIPTION
-----------
Set the path to the repository. This can also be controlled by
setting the GIT_DIR environment variable.
+--work-tree=<path>::
+ Set the path to the working tree. The value will not be
+ used in combination with repositories found automatically in
+ a .git directory (i.e. $GIT_DIR is not set).
+ This can also be controlled by setting the GIT_WORK_TREE
+ environment variable and the core.worktree configuration
+ variable.
+
--bare::
Same as --git-dir=`pwd`.
specifies a path to use instead of the default `.git`
for the base of the repository.
+'GIT_WORK_TREE'::
+ Set the path to the working tree. The value will not be
+ used in combination with repositories found automatically in
+ a .git directory (i.e. $GIT_DIR is not set).
+ This can also be controlled by the '--work-tree' command line
+ option and the core.worktree configuration variable.
+
git Commits
~~~~~~~~~~~
'GIT_AUTHOR_NAME'::