Skip to content

Latest commit

 

History

History
46 lines (41 loc) · 1009 Bytes

config-message.md

File metadata and controls

46 lines (41 loc) · 1009 Bytes

Back to top

Commit Message configuration

Explode message

Explode commit message to the list (enabled by default):

$ commithook message explode 1

Now you are able to make explode sentences into the list: (in examples used short commit message format)

$ git add myfile.php
$ git commit -m ' - I have done this. And I have done that.'

Expected commit message:

Implemented #33: Make smth good now
 - I have done this.
 - And I have done that.

Default explode string is . (dot and space).

$ commithook message explode-string
". "

Custom explode string

You may define a custom delimiter:

$ commithook message explode-string '|'

Let's test:

$ git add myfile.php
$ git commit -m '- I have done this. Yeah... I'm sure. | And I have done that.'

Expected commit message:

Implemented #33: Make smth good now
 - I have done this. Yeah... I'm sure.
 - And I have done that.

Back to top