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
gla() {
glb \
gl \
--all \
"${@}"
}
# log branch history
glb() {
git \
log \
--format="%C(auto)%h%d %C(red)%ai%C(auto) %an%n%B" \
--graph \
"${@}"
}
# log medium information
alias glm="\
git \
log \
# log all history with patches
glap() {
gl \
--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 \
"
"${@}"
}
# log history with patches
glp() {
gl \
--patch \
"${@}"
}
# abort the current merge commit
alias gma="\