Show parent commit when writing commit message
This commit is contained in:
parent
cba411e72d
commit
b876a21d27
1 changed files with 1 additions and 1 deletions
2
bin/get
2
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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue