mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-26 13:02:01 +03:00
git-tools.kak: Fix passing of custom parameters to git commit
This commit is contained in:
parent
dc18963875
commit
4b2004c6ff
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user