Skip to content

Commit 33c5ae4

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 sources. Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 0cfb6ab commit 33c5ae4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.gitattributes

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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

0 commit comments

Comments
 (0)