Add commit ID, user and timeframe to "git logtree"
dblume

dblume commited on 2024-05-09 09:02:20
Showing 1 changed files, with 1 additions and 1 deletions.


Turns out I could use a little more data in git logtree.
Also add consistent colors.
... ...
@@ -26,7 +26,7 @@
26 26
 [alias]
27 27
 	log1 = log --graph --abbrev-commit --decorate --date=short --format=format:'%C(bold blue)%h%C(reset) %C(bold green)%ad%C(reset) %C(white)%s%C(reset) %C(dim white)%an%C(reset)%C(bold yellow)%d%C(reset)'
28 28
 	log2 = log --graph --abbrev-commit --decorate --date short --format=format:'%C(bold blue)%h%C(reset) %C(bold cyan)%ad%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n''        %C(white)%s%C(reset) %C(dim white)%an%C(reset)' --all
29
-	logtree = log --graph --simplify-by-decoration --pretty=format:'%d' --all
29
+	logtree = log --graph --simplify-by-decoration --pretty=format:'%C(bold blue)%h%C(reset) %C(bold yellow)%d%C(reset) %C(bold green)(%ar)%C(reset) %C(dim white)%an%C(reset)' --all
30 30
 [pull]
31 31
 	# https://jvns.ca/blog/2024/02/01/dealing-with-diverged-git-branches/#there-s-no-one-solution
32 32
 	ff = only
33 33