diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-09-15 03:28:08 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-09-15 03:28:08 -0700 |
commit | afd9db4173b99fb2fb103ec604498896a6bedaa7 (patch) | |
tree | 7042d2c4988f18e00e86392e9bddf005b845325c /Documentation | |
parent | Merge branch 'rc/maint-http-no-head-pack-check' into maint (diff) | |
parent | diff --whitespace: fix blank lines at end (diff) | |
download | tgif-afd9db4173b99fb2fb103ec604498896a6bedaa7.tar.xz |
Merge branch 'jc/maint-1.6.0-blank-at-eof' (early part) into jc/maint-blank-at-eof
* 'jc/maint-1.6.0-blank-at-eof' (early part):
diff --whitespace: fix blank lines at end
core.whitespace: split trailing-space into blank-at-{eol,eof}
diff --color: color blank-at-eof
diff --whitespace=warn/error: fix blank-at-eof check
diff --whitespace=warn/error: obey blank-at-eof
diff.c: the builtin_diff() deals with only two-file comparison
apply --whitespace: warn blank but not necessarily empty lines at EOF
apply --whitespace=warn/error: diagnose blank at EOF
apply.c: split check_whitespace() into two
apply --whitespace=fix: detect new blank lines at eof correctly
apply --whitespace=fix: fix handling of blank lines at the eof
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/config.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Documentation/config.txt b/Documentation/config.txt index 2632c5149e..273bbde704 100644 --- a/Documentation/config.txt +++ b/Documentation/config.txt @@ -401,13 +401,17 @@ core.whitespace:: consider them as errors. You can prefix `-` to disable any of them (e.g. `-trailing-space`): + -* `trailing-space` treats trailing whitespaces at the end of the line +* `blank-at-eol` treats trailing whitespaces at the end of the line as an error (enabled by default). * `space-before-tab` treats a space character that appears immediately before a tab character in the initial indent part of the line as an error (enabled by default). * `indent-with-non-tab` treats a line that is indented with 8 or more space characters as an error (not enabled by default). +* `blank-at-eof` treats blank lines added at the end of file as an error + (enabled by default). +* `trailing-space` is a short-hand to cover both `blank-at-eol` and + `blank-at-eof`. * `cr-at-eol` treats a carriage-return at the end of line as part of the line terminator, i.e. with it, `trailing-space` does not trigger if the character before such a carriage-return |