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="\