From: Junio C Hamano Date: Wed, 5 Nov 2025 21:30:52 +0000 (-0800) Subject: attr: enable incomplete-line whitespace error for this project X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=33c5ae40db793fffa1f96e0d2ecc5a8c175b654b;p=thirdparty%2Fgit.git attr: enable incomplete-line whitespace error for this project 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 --- diff --git a/.gitattributes b/.gitattributes index 32583149c2..0accd23848 100644 --- a/.gitattributes +++ b/.gitattributes @@ -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