From 975382a359a68676dbb7611692c0daa9e836ef43 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 17 Nov 2024 17:05:44 +0100 Subject: [PATCH] =?UTF-8?q?=E2=86=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/alias/git.sh | 80 +++++++++++++++++++++++----------------------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/shell/alias/git.sh b/shell/alias/git.sh index 9a423ac..df627b8 100644 --- a/shell/alias/git.sh +++ b/shell/alias/git.sh @@ -82,46 +82,6 @@ git_branch_set_upstream() { "${@}" } -# clean untracked files -gcf() { git_clean_force "${@}"; } -git_clean_force() { - git \ - clean \ - -d \ - --force \ - "${@}" -} - -# redo the last commit with a different message -gcam() { git_commit_amend_message "${@}"; } -git_commit_amend_message() { - git \ - commit \ - --amend \ - --message \ - "${@}" -} - -# make a root commit -gcem() { git_commit_empty_message "${@}"; } -git_commit_empty_message() { - git \ - commit \ - --allow-empty \ - --allow-empty-message \ - --message \ - "${@}" -} - -# commit the index -gcm() { git_commit_message "${@}"; } -git_commit_message() { - git \ - commit \ - --message \ - "${@}" -} - # switch to a branch or checkout file(s) from a commit gc() { git_checkout "${@}"; } git_checkout() { @@ -165,6 +125,46 @@ git_cherry_pick_continue() { "${@}" } +# clean untracked files +gcf() { git_clean_force "${@}"; } +git_clean_force() { + git \ + clean \ + -d \ + --force \ + "${@}" +} + +# redo the last commit with a different message +gcam() { git_commit_amend_message "${@}"; } +git_commit_amend_message() { + git \ + commit \ + --amend \ + --message \ + "${@}" +} + +# make a root commit +gcem() { git_commit_empty_message "${@}"; } +git_commit_empty_message() { + git \ + commit \ + --allow-empty \ + --allow-empty-message \ + --message \ + "${@}" +} + +# commit the index +gcm() { git_commit_message "${@}"; } +git_commit_message() { + git \ + commit \ + --message \ + "${@}" +} + # configure the user email gcue() { git_config_user_email "${@}"; } git_config_user_email() {