Fix g commit so it takes all the arguments as the message not just the first.

This commit is contained in:
Will Hilton 2016-02-11 19:31:10 -05:00
parent e8609419d9
commit 402e56cdff

3
bin/g
View file

@ -137,7 +137,8 @@ if [ -z "$2" ]; then
read -ep 'Message: ' msg
git commit -m "$msg"
else
git commit -m "$2"
msg="${@:2}"
git commit -m "$msg"
fi
;;