From b876a21d270ffaf207b701312519554a75bc6241 Mon Sep 17 00:00:00 2001 From: William Hilton Date: Tue, 21 Jul 2015 00:52:22 -0400 Subject: [PATCH] Show parent commit when writing commit message --- bin/get | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/get b/bin/get index ebf0f72..7a97bf4 100755 --- a/bin/get +++ b/bin/get @@ -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"