From 4b2004c6ff3d68fc439e551ebca394ca51e5741f Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 24 Oct 2016 20:45:57 +0100 Subject: [PATCH] git-tools.kak: Fix passing of custom parameters to git commit --- rc/extra/git-tools.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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{