diff --git a/bashrc/worthwhile-functions b/bashrc/worthwhile-functions index 69c8f9f..b4d709f 100644 --- a/bashrc/worthwhile-functions +++ b/bashrc/worthwhile-functions @@ -38,7 +38,7 @@ function git() { echo "Setting HEAD to branch main" command git symbolic-ref HEAD refs/heads/main fi - elif [[ "$1" == "commit" && "$@" != *"--help"* && ( "$@" != *"--signoff"* && "$@" != *"-s"* ) ]]; then + elif [[ "$1" == "commit" && "$@" != *"--help"* && ( "$@" != *"--signoff"* && "$@" != *"-s"* && $@ != *"--amend" ) ]]; then [ $DEBUG != "" ] && echo "args: $@ --signoff" && sleep 3 command git "$@" --signoff else