diff --git a/rc/extra/git-tools.kak b/rc/extra/git-tools.kak index 455ae45a..82ca09f3 100644 --- a/rc/extra/git-tools.kak +++ b/rc/extra/git-tools.kak @@ -123,7 +123,7 @@ Available commands:\n-add\n-rm\n-blame\n-commit\n-checkout\n-diff\n-hide-blame\n EOF # fails, and generate COMMIT_EDITMSG - GIT_EDITOR='' EDITOR='' git commit > /dev/null 2>&1 + GIT_EDITOR='' EDITOR='' git commit "$@" > /dev/null 2>&1 msgfile="$(git rev-parse --git-dir)/COMMIT_EDITMSG" printf %s "edit '$msgfile' hook buffer BufWritePost '.*\Q$msgfile\E' %{ %sh{