From bce5c26f58ff5ec855955b49e4e94d6e81dfd837 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Sat, 6 Apr 2024 23:43:14 +0200 Subject: [PATCH] git: fancy log --- .gitconfig | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitconfig b/.gitconfig index aed0491..12b3341 100644 --- a/.gitconfig +++ b/.gitconfig @@ -7,7 +7,7 @@ ds = diff --staged --stat -p -C --color-words dt = difftool patch = !git --no-pager diff --no-color pullr = pull --rebase --autostash -sh = show --stat -p -C --color-words +sh = show --stat -p -C --color-words --show-signature st = status -sb t = tag --sort=-v:refname --format='%(color:bold italic)%(objectname:short)%(color:noitalic) %(refname:short)' @@ -24,8 +24,9 @@ copr = "!f() { \ && git checkout --detach FETCH_HEAD \ ;};f" -ll = log --graph --date=relative --topo-order --pretty='format:%C(yellow)%h%C(yellow)%d %Cblue%ar %Cgreenby %an%Creset -- %s' -lla = log --graph --date=relative --topo-order --pretty='format:%Cgreen%h %Cblue%ar %Credby %an%Creset -- %s' --all +g = graph -S -m simple -s round +ll = "log --first-parent --topo-order --pretty='format:%x1B[1;2;3;38:2:127:114:88m%h%x1B[38:2:154:234:255m%d%Creset %x1B[3;38:2:194:203:226m%s %x1B[38:2:93:112:164m᠁ %x1B[38:2:74:119:163m%al %x1B[2;38:2:93:112:164m%ah'" +lla = "log --graph --all --topo-order --pretty='format:%x1B[38:2:233:218:190m%h%x1B[38:2:154:234:255m%d%Creset %x1B[1;3;38:2:194:203:226m%s %x1B[38:2:93:112:164m᠁ %x1B[38:2:74:119:163m%al %x1B[2;38:2:93:112:164m%ah'" guilt = "!f(){ git log --pretty='format:%an <%ae>' $@ | sort | uniq -c | sort -rn; }; f" serve = daemon --verbose --export-all --base-path=.git --reuseaddr --strict-paths .git/