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:
2025-05-28 13:53:10 +02:00
parent f2adfbf27d
commit 3d3ba75abb
2 changed files with 6 additions and 0 deletions

View File

@@ -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

View File

@@ -0,0 +1 @@