guillaumeaubert / App-GitHooks

Plugin-based system to run specific actions and checks when git hooks are triggered.
https://metacpan.org/pod/App::GitHooks
Other
6 stars 3 forks source link

Account for git-commit trimming trailing whitespace by default #20

Closed guillaumeaubert closed 9 years ago

guillaumeaubert commented 9 years ago

Per http://git-scm.com/docs/git-commit:

--cleanup= This option determines how the supplied commit message should be cleaned up before committing. The can be strip, whitespace, verbatim, scissors or default.

strip Strip leading and trailing empty lines, trailing whitespace, and #commentary and collapse consecutive empty lines.

whitespace Same as strip except #commentary is not removed.

verbatim Do not change the message at all.

scissors Same as whitespace, except that everything from (and including) the line "# ------------------------ >8 ------------------------" is truncated if the message is to be edited. "#" can be customized with core.commentChar.

default Same as strip if the message is to be edited. Otherwise whitespace.

guillaumeaubert commented 9 years ago

Released in version 1.5.1.