git: Use commit.template for a 2nd newline
When I write commit messages in vim, I often use gwap to format the message body. This breaks if there is no empty line between the body and the following "Please enter the commit message for your changes..." comment. So, to not always have to add this empty line first, I use a commit.template file that simply contains one empty line.
This commit is contained in:
@@ -53,6 +53,11 @@
|
||||
ui = auto,column,dense
|
||||
[commit]
|
||||
gpgsign = true
|
||||
|
||||
# Add an additional newline, so that I can format the body more easily
|
||||
# TODO: is there a way to use XDG_CONFIG_HOME?
|
||||
template = ~/.config/git/message.template
|
||||
|
||||
verbose = true
|
||||
[core]
|
||||
abbrev = 12
|
||||
|
||||
Reference in New Issue
Block a user