author | Junio C Hamano <gitster@pobox.com> | |
Sun, 6 Sep 2009 05:21:17 +0000 (22:21 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 6 Sep 2009 06:14:31 +0000 (23:14 -0700) | ||
commit | aeb84b05ae448596c336807631d9633492b3049a | |
tree | 725a6dd0a1ebb2e513c2c698186c5ea771f791dd | tree | snapshot |
parent | 690ed8436326484fe7e3f4deac4cffd780c7d630 | commit | diff |
core.whitespace: split trailing-space into blank-at-{eol,eof}
People who configured trailing-space depended on it to catch both extra
white space at the end of line, and extra blank lines at the end of file.
Earlier attempt to introduce only blank-at-eof gave them an escape hatch
to keep the old behaviour, but it is a regression until they explicitly
specify the new error class.
This introduces a blank-at-eol that only catches extra white space at the
end of line, and makes the traditional trailing-space a convenient synonym
to catch both blank-at-eol and blank-at-eof. This way, people who used
trailing-space continue to catch both classes of errors.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
People who configured trailing-space depended on it to catch both extra
white space at the end of line, and extra blank lines at the end of file.
Earlier attempt to introduce only blank-at-eof gave them an escape hatch
to keep the old behaviour, but it is a regression until they explicitly
specify the new error class.
This introduces a blank-at-eol that only catches extra white space at the
end of line, and makes the traditional trailing-space a convenient synonym
to catch both blank-at-eol and blank-at-eof. This way, people who used
trailing-space continue to catch both classes of errors.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt | diff | blob | history | |
cache.h | diff | blob | history | |
ws.c | diff | blob | history |