]> git.ipfire.org Git - thirdparty/git.git/commitdiff
attr: enable incomplete-line whitespace error for this project
authorJunio C Hamano <gitster@pobox.com>
Wed, 5 Nov 2025 21:30:52 +0000 (13:30 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 5 Nov 2025 21:37:20 +0000 (13:37 -0800)
Now "git diff --check" and "git apply --whitespace=warn/fix" learned
incomplete line is a whitespace error, enable them for this project
to prevent patches to add new incomplete lines to our sources.

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

index 32583149c2f92729158d5eac5e81edd4c6a5c1d0..0accd238487304fbf5b5991755437272016fa526 100644 (file)
@@ -1,6 +1,6 @@
 * whitespace=!indent,trail,space
-*.[ch] whitespace=indent,trail,space diff=cpp
-*.sh whitespace=indent,trail,space text eol=lf
+*.[ch] whitespace=indent,trail,space,incomplete diff=cpp
+*.sh whitespace=indent,trail,space,incomplete text eol=lf
 *.perl text eol=lf diff=perl
 *.pl text eof=lf diff=perl
 *.pm text eol=lf diff=perl