Display git statuses before typing the message

This commit is contained in:
Jérémy Lecour 2019-03-12 23:31:58 +01:00 committed by Jérémy Lecour
parent ca9c7ec654
commit 42b781db96

View file

@ -391,6 +391,10 @@ else
fi
readonly INTERACTIVE
if [ -n "${GIT_STATUSES}" ] && [ "${INTERACTIVE}" = "1" ]; then
printf "/!\ There are some uncommited changes.\n%s\n\n" "${GIT_STATUSES}"
fi
if [ -z "${MESSAGE}" ] && [ "${INTERACTIVE}" = "1" ]; then
# get input from stdin
printf "> Please, enter details about your maintenance:\n"