From 7a1320e10828675512df3404a0012f23a90135f6 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 16 Nov 2024 19:17:36 +0100 Subject: [PATCH] gla,glb --- shell/alias/git.sh | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/shell/alias/git.sh b/shell/alias/git.sh index 977b3e0..60d84d9 100644 --- a/shell/alias/git.sh +++ b/shell/alias/git.sh @@ -252,14 +252,21 @@ gib() { "${@}" } -# log commits history -alias gl="\ -git \ -log \ ---all \ ---graph \ ---format=\"%C(auto)%h%d %C(red)%ai%C(auto) %an%n%B\" \ -" +# log all history +gla() { + glb \ + --all \ + "${@}" +} + +# log branch history +glb() { + git \ + log \ + --graph \ + --format="%C(auto)%h%d %C(red)%ai%C(auto) %an%n%B" \ + "${@}" +} # log medium information alias glm="\