@@ -172,16 +172,25 @@ OPTIONS
172172 linkgit:git-commit-tree[1].
173173
174174--cleanup=<mode>::
175- This option sets how the commit message is cleaned up.
176- The '<mode>' can be one of 'verbatim', 'whitespace', 'strip',
177- and 'default'. The 'default' mode will strip leading and
178- trailing empty lines and #commentary from the commit message
179- only if the message is to be edited. Otherwise only whitespace
180- removed. The 'verbatim' mode does not change message at all,
181- 'whitespace' removes just leading/trailing whitespace lines
182- and 'strip' removes both whitespace and commentary. The default
183- can be changed by the 'commit.cleanup' configuration variable
184- (see linkgit:git-config[1]).
175+ This option determines how the supplied commit message should be
176+ cleaned up before committing. The '<mode>' can be `strip`,
177+ `whitespace`, `verbatim`, or `default`.
178+ +
179+ --
180+ strip::
181+ Strip leading and trailing empty lines, trailing whitespace, and
182+ #commentary and collapse consecutive empty lines.
183+ whitespace::
184+ Same as `strip` except #commentary is not removed.
185+ verbatim::
186+ Do not change the message at all.
187+ default::
188+ Same as `strip` if the message is to be edited.
189+ Otherwise `whitespace`.
190+ --
191+ +
192+ The default can be changed by the 'commit.cleanup' configuration
193+ variable (see linkgit:git-config[1]).
185194
186195-e::
187196--edit::
0 commit comments