From 2a43038a48e1686cdb6029501b11ac254ff2eab6 Mon Sep 17 00:00:00 2001 From: bretello Date: Sat, 9 Oct 2021 12:28:10 +0200 Subject: [PATCH] git: add `git mylog` command --- gitconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitconfig b/gitconfig index a177522..587e209 100644 --- a/gitconfig +++ b/gitconfig @@ -30,7 +30,7 @@ squash = true abbrevcommit = true [format] -#pretty = format:%C(yellow)commit %h%Cred%d %Creset%nAuthor: %Cblue%>(12)%an%n%CgreenDate: %ar%Creset%n%n%B [alias] showtool = "!showci () { rev=${1:-HEAD}; git difftool $rev~1 $rev; }; showci $1" +mylog = "log --pretty='format:👉 %C(yellow)commit: %h%C(auto)%d %Creset%nAuthor: %C(auto,cyan)%>(12)%an (%aE)%n%C(reset)Date: %C(auto,green)%ar%Creset%nContent: %s'"