diff --git a/shell/alias/git.sh b/shell/alias/git.sh index a95c7f5..bb7301e 100644 --- a/shell/alias/git.sh +++ b/shell/alias/git.sh @@ -83,36 +83,31 @@ gcf() { } # commit the index -alias gcm="\ -git \ -commit \ ---message \ -" +gcm() { + git \ + commit \ + --message \ + "${@}" +} # redo the last commit with a different message -alias gcma="\ -git \ -commit \ ---amend \ ---message \ -" +gcma() { + git \ + commit \ + --amend \ + --message \ + "${@}" +} # make a root commit -alias gcme="\ -git \ -commit \ ---allow-empty \ ---allow-empty-message \ ---message \"\" \ -" - -# commit the index and sign -alias gcms="\ -git \ -commit \ ---gpg-sign \ ---message \ -" +gcme() { + git \ + commit \ + --allow-empty \ + --allow-empty-message \ + --message \ + "${@}" +} # switch to a branch or checkout file(s) from a commit gco() {