Show parent commit when writing commit message

This commit is contained in:
William Hilton 2015-07-21 00:52:22 -04:00
parent cba411e72d
commit b876a21d27

View file

@ -45,7 +45,7 @@ fi
;;
commit)
echo Committing
echo "Parent commit: $(git log --abbrev-commit -1 --pretty=format:'%C(bold blue)%s%Creset %Cgreen(%cr)%Creset')"
if [ -z "$2" ]; then
read -p 'Message: ' msg
git commit -m "$msg"