Commit 38e3592b authored by Vitaly Lipatov's avatar Vitaly Lipatov

gitcam: add new command for git --amend -a commit

parent 9dfba4d3
#!/bin/sh
# Do commit amend for all files
# load common functions, compatible with local and installed script
. `dirname $0`/../share/eterbuild/functions/common
if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
echo "gitcam - do fast git commit amend (apply all current changes to the last commit)"
echo "Use: gitcam [-e]"
echo " -e - edit commit message"
exit 1
fi
if [ "$1" = "-e" ] ; then
docmd git commit -a --amend $@
else
docmd git commit -a --amend -C HEAD $@
fi
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