From: Junio C Hamano Date: Wed, 05 Nov 2025 21:30:52 GMT Subject: [PATCH v2 12/12] attr: enable incomplete-line whitespace error for this project Message-ID: <20251105213052.1499224-13-gitster@pobox.com> In-Reply-To: <20251105213052.1499224-1-gitster@pobox.com> 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 --- .gitattributes | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.52.0-rc0-105-gc08128fbb6