aboutsummaryrefslogtreecommitdiff
path: root/.gitconfig
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@rak.ac>2020-05-10 16:20:27 -0400
committerRyan Kavanagh <rak@rak.ac>2020-05-10 16:20:27 -0400
commitecd18c63678f8ed265c45d44281b59c90cbe3b34 (patch)
tree28ff435b9400c55417d5baacdc9fc83701e85fd1 /.gitconfig
parentdrop obsolete mailbox.rc (diff)
Add some git aliases for logs
Diffstat (limited to '.gitconfig')
-rw-r--r--.gitconfig9
1 files changed, 9 insertions, 0 deletions
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"]