alias: ersetze gsp

This commit is contained in:
Michael Grote 2023-04-12 08:04:29 +02:00
parent 9302abcaec
commit 66cb5fa4e9

View file

@ -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 <<EOF
Description:
"git stage -p" + "git commit" combined
without parameter only "gsp" is called,
if '$1' is set; "gcm" is called too
Usage:
gsp [--help] <message>
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