]> git.ipfire.org Git - thirdparty/git.git/commitdiff
gitattributes: fix eol attribute for Perl scripts
authorKoutian Wu <ktwu01@gmail.com>
Mon, 15 Jun 2026 07:53:58 +0000 (07:53 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 15 Jun 2026 15:43:31 +0000 (08:43 -0700)
The *.pl pattern currently sets eof=lf, which is not a built-in
attribute used for line-ending normalization.

Use eol=lf instead, matching the neighboring *.perl and *.pm rules, so
Perl scripts are checked out with LF line endings.

Signed-off-by: Koutian Wu <ktwu01@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
.gitattributes

index 158c3d45c4c10cb19c7d3fb02d6bfdaf7a1794f1..0eb2f580174cb36fc5c9d0a3baf0508b580d597d 100644 (file)
@@ -2,7 +2,7 @@
 *.[ch] whitespace=indent,trail,space diff=cpp
 *.sh whitespace=indent,trail,space text eol=lf
 *.perl text eol=lf diff=perl
-*.pl text eof=lf diff=perl
+*.pl text eol=lf diff=perl
 *.pm text eol=lf diff=perl
 *.py text eol=lf diff=python
 *.bat text eol=crlf