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