]> git.ipfire.org Git - thirdparty/git.git/commitdiff
doc: fix case error of eol attribute in example
authorShane Sun <github@waterlemons2k.com>
Sun, 23 Jun 2024 21:40:17 +0000 (21:40 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 25 Jun 2024 04:49:03 +0000 (21:49 -0700)
The eol attribute only accepts "crlf" and "lf",
but the example incorrectly capitalizes "crlf".

References:

- https://git-scm.com/docs/gitattributes#_eol
- https://github.com/git/git/blob/v2.45.2/convert.c#L1278

Signed-off-by: Shane Sun <github@waterlemons2k.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/gitattributes.txt

index 4338d023d9a313edae0bae8b2ac8087a3d15a003..4370175dcc8dafd37042aa423233b86061cecaf1 100644 (file)
@@ -374,7 +374,7 @@ explicitly define the line endings with `eol` if the `working-tree-encoding`
 attribute is used to avoid ambiguity.
 
 ------------------------
-*.ps1          text working-tree-encoding=UTF-16LE eol=CRLF
+*.ps1          text working-tree-encoding=UTF-16LE eol=crlf
 ------------------------
 
 You can get a list of all available encodings on your platform with the