alias: ersetze gsp
This commit is contained in:
parent
9302abcaec
commit
66cb5fa4e9
1 changed files with 1 additions and 28 deletions
29
.bash_extra
29
.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 <<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
|
||||
|
|
Loading…
Reference in a new issue