diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-11-12 14:02:58 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-11-14 08:26:46 -0800 |
| commit | 51358a1ede7f4b6b50e4e5a86558af5204691fe0 (patch) | |
| tree | 3449d68f35d55a9e35354b54e4deb040e3fbb477 | |
| parent | ab2693cb52a40f597d3cc2b6938626d14655f7c0 (diff) | |
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>
| -rw-r--r-- | .gitattributes | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/.gitattributes b/.gitattributes index 32583149c2..a8e2950a73 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,13 +1,13 @@ * 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 *.py text eol=lf diff=python *.bat text eol=crlf CODE_OF_CONDUCT.md -whitespace -/Documentation/**/*.adoc text eol=lf +/Documentation/**/*.adoc text eol=lf whitespace=trail,space,incomplete /command-list.txt text eol=lf /GIT-VERSION-GEN text eol=lf /mergetools/* text eol=lf |
