Commit d1745622 authored by Vitaly Lipatov's avatar Vitaly Lipatov

introduce gammit: gear-commit -a analogue: make commit with description from spec's changelog

parent 18ccb988
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
. `dirname $0`/../share/eterbuild/functions/common . `dirname $0`/../share/eterbuild/functions/common
if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
echo "gitcam - do fast git commit amend (apply all current changes to the last commit)" echo "gamend - do fast git commit amend (apply all current changes to the last commit)"
echo "Use: gitcam [-e] [file]" echo "Use: gamend [-e] [file]"
echo " -e - edit commit message" echo " -e - edit commit message"
exit 1 exit 1
fi fi
......
#!/bin/sh
# Do gear-commit -a
# load common functions, compatible with local and installed script
. `dirname $0`/../share/eterbuild/functions/common
if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
echo "gammit - do fast git commit amend (apply all current changes to the last commit)"
echo "Use: gammit [-e] [file]"
echo " -e - edit commit message"
exit 1
fi
ARG=
# If no args
if [ -z "$1" ] ; then
ARG="$ARG -a"
fi
docmd gear-commit $ARG $@
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment