From e6d67ac56e45cbd6469277a2878616d1ce637ead Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 14 May 2023 22:47:03 +0200 Subject: [PATCH] gl --- bash/alias/git.sh | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/bash/alias/git.sh b/bash/alias/git.sh index 94ffd6c..30fc8a6 100644 --- a/bash/alias/git.sh +++ b/bash/alias/git.sh @@ -202,15 +202,33 @@ init \ " # log commits history -alias gl='git log --all --graph \ ---format="%C(auto)%h%d %C(red)%ai%C(auto) %an%n%B"' - -# 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' +alias gl="\ +git \ +log \ +--all \ +--graph \ +--format=\"%C(auto)%h%d %C(red)%ai%C(auto) %an%n%B\" \ +" # log medium information -alias glm='git log --all --decorate --graph --pretty=medium' +alias glm="\ +git \ +log \ +--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 \ +" # abort the current merge commit alias gma="\