Skip to content

Commit 51358a1

Browse files
committed
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 source to both code and documentation files. Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent ab2693c commit 51358a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.gitattributes

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
* whitespace=!indent,trail,space
2-
*.[ch] whitespace=indent,trail,space diff=cpp
3-
*.sh whitespace=indent,trail,space text eol=lf
2+
*.[ch] whitespace=indent,trail,space,incomplete diff=cpp
3+
*.sh whitespace=indent,trail,space,incomplete text eol=lf
44
*.perl text eol=lf diff=perl
55
*.pl text eof=lf diff=perl
66
*.pm text eol=lf diff=perl
77
*.py text eol=lf diff=python
88
*.bat text eol=crlf
99
CODE_OF_CONDUCT.md -whitespace
10-
/Documentation/**/*.adoc text eol=lf
10+
/Documentation/**/*.adoc text eol=lf whitespace=trail,space,incomplete
1111
/command-list.txt text eol=lf
1212
/GIT-VERSION-GEN text eol=lf
1313
/mergetools/* text eol=lf

0 commit comments

Comments
 (0)