functions

This commit is contained in:
Marc Beninca 2024-11-17 17:14:15 +01:00
parent dcef6d2d62
commit bbff4013f3
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -241,7 +241,7 @@ git_fetch() {
# fetch from remote repository and prune local orphan branches # fetch from remote repository and prune local orphan branches
gfp() { git_fetch_prune "${@}"; } gfp() { git_fetch_prune "${@}"; }
git_fetch_prune() { git_fetch_prune() {
gf \ git_fetch \
--prune \ --prune \
"${@}" "${@}"
} }
@ -300,7 +300,7 @@ C %C(blue)%ci
# log all history # log all history
gla() { git_log_all "${@}"; } gla() { git_log_all "${@}"; }
git_log_all() { git_log_all() {
gl \ git_log \
--all \ --all \
"${@}" "${@}"
} }
@ -308,7 +308,7 @@ git_log_all() {
# log all history with patches # log all history with patches
glap() { git_log_all_patch "${@}"; } glap() { git_log_all_patch "${@}"; }
git_log_all_patch() { git_log_all_patch() {
gl \ git_log \
--all \ --all \
--patch \ --patch \
"${@}" "${@}"
@ -317,7 +317,7 @@ git_log_all_patch() {
# log history with patches # log history with patches
glp() { git_log_patch "${@}"; } glp() { git_log_patch "${@}"; }
git_log_patch() { git_log_patch() {
gl \ git_log \
--patch \ --patch \
"${@}" "${@}"
} }
@ -389,7 +389,7 @@ git_push_delete() {
# force the push to the remote repository # force the push to the remote repository
gpf() { git_push_force "${@}"; } gpf() { git_push_force "${@}"; }
git_push_force() { git_push_force() {
gp \ git_push \
--force \ --force \
"${@}" "${@}"
} }