]> git.ipfire.org Git - thirdparty/git.git/commitdiff
attr: enable incomplete-line whitespace error for this project
authorJunio C Hamano <gitster@pobox.com>
Wed, 12 Nov 2025 22:02:58 +0000 (14:02 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 14 Nov 2025 16:26:46 +0000 (08:26 -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 source to both
code and documentation files.

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

index 32583149c2f92729158d5eac5e81edd4c6a5c1d0..a8e2950a7356778b2a43f4da88dd33fbbd73a37d 100644 (file)
@@ -1,13 +1,13 @@
 * 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
 *.py text eol=lf diff=python
 *.bat text eol=crlf
 CODE_OF_CONDUCT.md -whitespace
-/Documentation/**/*.adoc text eol=lf
+/Documentation/**/*.adoc text eol=lf whitespace=trail,space,incomplete
 /command-list.txt text eol=lf
 /GIT-VERSION-GEN text eol=lf
 /mergetools/* text eol=lf