@@ -5,6 +5,7 @@
[core]
excludesfile = ~/.config/git/gitignore
+ hooksPath = ~/.config/git/hooks
[interactive]
singleKey = true
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+set -x
+MSG_PATH=$1
+TMP_PATH="$(mktemp)"
+git log --format='%B' -1 | sed 's/^/#/' >> "$TMP_PATH"
+cat "$MSG_PATH" >> "$TMP_PATH"
+mv "$TMP_PATH" "$MSG_PATH"