Skip to content

Commit

Permalink
Merge pull request #8 from tperrier/master
Browse files Browse the repository at this point in the history
Change order of commit -m "Message"
  • Loading branch information
vigo committed Mar 5, 2016
2 parents 668eb21 + 487eed2 commit e786ba6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/git-kommit
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e786ba6

Please sign in to comment.