gl,gla,glap,glp

This commit is contained in:
Marc Beninca 2024-11-16 20:27:36 +01:00
parent c2ce37595c
commit 58578f9523
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -252,41 +252,46 @@ gib() {
"${@}" "${@}"
} }
# log all history # log history
gla() { gl() {
glb \ local format="\
--all \ %C(auto)%h%d
"${@}" S %C(red)%GS
} A %C(green)%ai
%C(green)%an %ae
# log branch history C %C(blue)%ci
glb() { %C(blue)%cn %ce
%B"
git \ git \
log \ log \
--format="%C(auto)%h%d %C(red)%ai%C(auto) %an%n%B" \ --abbrev=8 \
--abbrev-commit \
--format="${format}" \
--graph \ --graph \
"${@}" "${@}"
} }
# log medium information # log all history
alias glm="\ gla() {
git \ gl \
log \ --all \
--all \ "${@}"
--decorate \ }
--graph \
--pretty=medium \
"
# log commits history with patches # log all history with patches
alias glp="\ glap() {
git \ gl \
log \ --all \
--all \ --patch \
--graph \ "${@}"
--format=\"%C(auto)%h%d %C(red)%ai%C(auto) %an%n%B\" \ }
--patch \
" # log history with patches
glp() {
gl \
--patch \
"${@}"
}
# abort the current merge commit # abort the current merge commit
alias gma="\ alias gma="\