]> granicus.if.org Git - git/commitdiff
doc/gitattributes: clarify "autocrlf overrides eol"
authorJeff King <peff@peff.net>
Tue, 29 Jan 2019 12:41:07 +0000 (07:41 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 29 Jan 2019 17:21:33 +0000 (09:21 -0800)
We only override core.eol with core.autocrlf when the latter is set to
something besides "false".  Let's make this more clear, and point the
reader to the git-config definitions, which discuss this in more detail.

Noticed-by: Sergey Lukashev <lukashev.s@ya.ru>
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/gitattributes.txt

index b8392fc3300cfa7d7c37e37dd069246f20ceadb1..ce383e97dcc33377ffa79bd6304c0495fdab5979 100644 (file)
@@ -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
 directory, use the `eol` attribute for a single file and the
 `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::