From 66cb5fa4e9a70749066c815d871728b16cd4f6b3 Mon Sep 17 00:00:00 2001 From: mg Date: Wed, 12 Apr 2023 08:04:29 +0200 Subject: [PATCH] alias: ersetze gsp --- .bash_extra | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/.bash_extra b/.bash_extra index 8161c8d..4d2da2b 100644 --- a/.bash_extra +++ b/.bash_extra @@ -176,34 +176,6 @@ EOF fi esac } -function gsp { - case "$1" in - "") - git add $(git ls-files -o --exclude-standard) && git stage -p - ;; - --help | -h) - cat < - -Options: - -h, --help Prints this help. - -Author: - michael.grote@posteo.de - git.mgrote.net -EOF - ;; - *) - git stage -p && git commit -m "$*" - ;; - esac -} function glogs { # https://git-scm.com/docs/pretty-formats # https://stackoverflow.com/questions/3631005/git-log-tabular-formatting @@ -248,6 +220,7 @@ alias gf="git fetch" alias gdel="git add . && git stash && git stash clear" alias glast="git log -1 HEAD --stat" alias gd="git diff" +alias gsp="git stage -p" # vim alias v="view" # docker