From 487eed2489304566a58a8a7b3a00d032355084b7 Mon Sep 17 00:00:00 2001 From: Trevor Date: Sat, 27 Feb 2016 13:02:57 -0800 Subject: [PATCH] Change order of commit -m "Message" Move the the commit message set with git commit -m "Message" to the top of the kommit message instead of the bottom. --- bin/git-kommit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/git-kommit b/bin/git-kommit index 9d69c2c..5f26609 100755 --- a/bin/git-kommit +++ b/bin/git-kommit @@ -96,7 +96,7 @@ if [[ -f $msg ]]; then wrap_at=$KOMMIT_WRAP_AT fi out=$(fold -w $wrap_at -s "${msg}" | sed "s/^/ /") - echo -e "\n\n$out\n\n" | cat - "${1}" > tmp_msg && + echo -e "\n\n$out\n\n" | cat "${1}" - > tmp_msg && mv tmp_msg "${1}" && rm -f "${msg}" fi