From 7e788e5940c7bc91862538864f4b2a89084f7f05 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 17 Nov 2024 03:07:23 +0100 Subject: [PATCH] commit --- shell/alias/git.sh | 47 +++++++++++++++++++++------------------------- 1 file changed, 21 insertions(+), 26 deletions(-) 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() {