]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
.gitattributes: Enforce LF line-endings on all non-binary files
authorDeniz Bahadir <deniz@code.bahadir.email>
Wed, 24 Apr 2024 14:37:34 +0000 (16:37 +0200)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Mon, 6 May 2024 20:49:25 +0000 (22:49 +0200)
Although Git is able to automatically modify line-endings during checkin
and checkout, this brings a lot of trouble, especially when trying to
use a repository from different platforms (as Windows and Linux). This
is due to the fact that Git consults different local gitconfig settings
and uses problematic defaults if not set.

Therefore, Git should enfoce one type of line-ending (LF) and not
consult the local config, which is what the change from this commit
does.

Signed-off-by: Deniz Bahadir <deniz@code.bahadir.email>
.gitattributes

index 9ff3e7c63b7e90b6ef8aec1e940cdf7ffee06630..517beccb3f0f74a1027c1a6ae62c728113ffa1d9 100644 (file)
@@ -1,11 +1,7 @@
-* text=auto
-*.abi text eol=lf
-*.c text
-*.h text
-*.sh text eol=lf
+# By default, enforce LF line-endings on all files that are not considered binary files!
+* text=auto eol=lf
+
 crc32_braid_tbl.h hooks-max-size=1000000
-Makefile text
-configure text eol=lf
 
 # Don't export git/github-related files in tar/zip archives
 /.github export-ignore