From d24113e1b0ed45d451b5c5fb6419d6fc9b6d1a6a Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 17 Nov 2024 14:03:22 +0100 Subject: [PATCH] wip --- shell/alias/git.sh | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/shell/alias/git.sh b/shell/alias/git.sh index f043683..5bedf14 100644 --- a/shell/alias/git.sh +++ b/shell/alias/git.sh @@ -1,61 +1,68 @@ # add to index -ga() { +git_add() { git \ add \ "${@}" } +ga() { git_add "${@}"; } # add all to index -gaa() { +git_add_all() { git \ add \ --all \ "${@}" } +gaa() { git_add_all "${@}"; } # add parts of all to index -gaap() { +git_add_all_patch() { git \ add \ --all \ --patch \ "${@}" } +gaap() { git_add_all_patch "${@}"; } # add parts to index -gap() { +git_add_patch() { git \ add \ --patch \ "${@}" } +gap() { git_add_patch "${@}"; } # create a branch -gb() { +git_branch() { git \ branch \ "${@}" } +gb() { git_branch "${@}"; } # delete a branch -gbd() { +git_branch_delete() { git \ branch \ --delete \ "${@}" } +gbd() { git_branch_delete "${@}"; } # force a branch deletion -gbdf() { +git_branch_delete_force() { git \ branch \ --delete \ --force \ "${@}" } +gbdf() { git_branch_delete_force "${@}"; } # list branches -gbl() { +git_branch_list() { git \ branch \ --all \ @@ -64,6 +71,7 @@ gbl() { --verbose \ "${@}" } +gbl() { git_branch_list "${@}"; } # set the link to a remote branch from a local branch git_branch_set_upstream() {