提交 13e26309 编写于 作者: J Junio C Hamano

Merge branch 'jk/autocrlf-overrides-eol-doc'

Documentation around core.crlf has been updated.

* jk/autocrlf-overrides-eol-doc:
  docs/config: clarify "text property" in core.eol
  doc/gitattributes: clarify "autocrlf overrides eol"
...@@ -121,11 +121,14 @@ core.quotePath:: ...@@ -121,11 +121,14 @@ core.quotePath::
core.eol:: core.eol::
Sets the line ending type to use in the working directory for Sets the line ending type to use in the working directory for
files that have the `text` property set when core.autocrlf is false. files that are marked as text (either by having the `text`
attribute set, or by having `text=auto` and Git auto-detecting
the contents as text).
Alternatives are 'lf', 'crlf' and 'native', which uses the platform's Alternatives are 'lf', 'crlf' and 'native', which uses the platform's
native line ending. The default value is `native`. See native line ending. The default value is `native`. See
linkgit:gitattributes[5] for more information on end-of-line linkgit:gitattributes[5] for more information on end-of-line
conversion. conversion. Note that this value is ignored if `core.autocrlf`
is set to `true` or `input`.
core.safecrlf:: core.safecrlf::
If true, makes Git check if converting `CRLF` is reversible when If true, makes Git check if converting `CRLF` is reversible when
......
...@@ -124,7 +124,9 @@ text file is normalized, its line endings are converted to LF in the ...@@ -124,7 +124,9 @@ text file is normalized, its line endings are converted to LF in the
repository. To control what line ending style is used in the working repository. To control what line ending style is used in the working
directory, use the `eol` attribute for a single file and the directory, use the `eol` attribute for a single file and the
`core.eol` configuration variable for all text files. `core.eol` configuration variable for all text files.
Note that `core.autocrlf` overrides `core.eol` Note that setting `core.autocrlf` to `true` or `input` overrides
`core.eol` (see the definitions of those options in
linkgit:git-config[1]).
Set:: Set::
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册