From ecb6a686f2e2d30340dfd7ad4e9fa4cc57f8a8ac Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 16 Nov 2024 17:01:12 +0100 Subject: [PATCH] gaap,gap --- shell/alias/git.sh | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/shell/alias/git.sh b/shell/alias/git.sh index fdcbffc..88188c2 100644 --- a/shell/alias/git.sh +++ b/shell/alias/git.sh @@ -13,12 +13,22 @@ gaa() { "${@}" } +# add parts of all to index +gaap() { + git \ + add \ + --all \ + --patch \ + "${@}" +} + # add parts to index -alias gap="\ -git \ -add \ ---patch \ -" +gap() { + git \ + add \ + --patch \ + "${@}" +} # create a branch alias gb="\