[PATCH 12/12] attr: enable incomplete-line whitespace error for this project
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 4, 2025, 02:09 UTC
- Message-ID
- <20251104020928.582199-13-gitster@pobox.com>
- In-Reply-To
- <20251104020928.582199-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 <gitster@pobox.com> --- .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