From ecd18c63678f8ed265c45d44281b59c90cbe3b34 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Sun, 10 May 2020 16:20:27 -0400 Subject: Add some git aliases for logs --- .gitconfig | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.gitconfig b/.gitconfig index d570b64..97783ce 100644 --- a/.gitconfig +++ b/.gitconfig @@ -8,6 +8,15 @@ [alias] wdiff = diff --color-words pusha = push origin : + lg = !"git lg1" + lg1 = !"git lg1-specific --all" + lg2 = !"git lg2-specific --all" + lg3 = !"git lg3-specific --all" + lsd = !"git lg3-specific --all --simplify-by-decoration" + + lg1-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)' + lg2-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(auto)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' + lg3-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset) %C(bold cyan)(committed: %cD)%C(reset) %C(auto)%d%C(reset)%n'' %C(white)%s%C(reset)%n'' %C(dim white)- %an <%ae> %C(reset) %C(dim white)(committer: %cn <%ce>)%C(reset)' [push] default = simple [url "git://anonscm.debian.org"] -- cgit v1.2.3