aboutsummaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-11-30 18:31:40 -0800
committerJunio C Hamano <gitster@pobox.com>2025-11-30 18:31:40 -0800
commit3b212a83feea0962d437a3d5883cdd635403fe3c (patch)
tree446e71b654752ef15a60d8a57869f322c75cc9af /Documentation
parentffd9bb1bc7ffc635ff8687b79c23a6a0a3551185 (diff)
parent51358a1ede7f4b6b50e4e5a86558af5204691fe0 (diff)
downloadgit-3b212a83feea0962d437a3d5883cdd635403fe3c.tar.xz
Merge branch 'jc/whitespace-incomplete-line'
Both "git apply" and "git diff" learn a new whitespace error class, "incomplete-line". * jc/whitespace-incomplete-line: attr: enable incomplete-line whitespace error for this project diff: highlight and error out on incomplete lines apply: check and fix incomplete lines whitespace: allocate a few more bits and define WS_INCOMPLETE_LINE apply: revamp the parsing of incomplete lines diff: update the way rewrite diff handles incomplete lines diff: call emit_callback ecbdata everywhere diff: refactor output of incomplete line diff: keep track of the type of the last line seen diff: correct suppress_blank_empty hack diff: emit_line_ws_markup() if/else style fix whitespace: correct bit assignment comments
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/config/core.adoc2
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/config/core.adoc b/Documentation/config/core.adoc
index 11efad189e..01202da7cd 100644
--- a/Documentation/config/core.adoc
+++ b/Documentation/config/core.adoc
@@ -629,6 +629,8 @@ core.whitespace::
part of the line terminator, i.e. with it, `trailing-space`
does not trigger if the character before such a carriage-return
is not a whitespace (not enabled by default).
+* `incomplete-line` treats the last line of a file that is missing the
+ newline at the end as an error (not enabled by default).
* `tabwidth=<n>` tells how many character positions a tab occupies; this
is relevant for `indent-with-non-tab` and when Git fixes `tab-in-indent`
errors. The default tab width is 8. Allowed values are 1 to 63.