From 461263a61e57ec99dfd3ab71ade4502747be5585 Mon Sep 17 00:00:00 2001 From: Michael Campagnaro Date: Mon, 4 May 2020 13:23:17 -0400 Subject: [PATCH] Update git log formatting --- README.md | 6 ++---- gitconfig | 36 +++++++++++++++++++++++++++++++++++- 2 files changed, 37 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b2ec9d4..938151c 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,9 @@ -dotfiles -======== +# dotfiles Various dotfiles and misc configs. Some of it is customized around my system setup (like aliases pointing to paths) but you should be able to easily remove that stuff. -Installing -========== +## Installing There is an `install` script that facilitates the setup, however it's been a while since I did a full system setup and this script may not be fully complete. An alternative method is to manually diff --git a/gitconfig b/gitconfig index 5f498ff..421d525 100644 --- a/gitconfig +++ b/gitconfig @@ -39,7 +39,41 @@ # opposed to %cr which is the commiter's timestamp. I prefer the former # because I sometimes edit an earlier commit message while rebasing and I # want to continue to see the original date. - lg = log --graph --pretty=format:'%Cred%h%Creset %C(yellow)%an [%cn]%d%Creset %s %Cgreen(%ad|%cr)%Creset' --date=relative + # + # @note If you want a grey that's slightly darker than %C(white dim) then + # try %C(black bold). + # + + # Style 1 + #lg = log --graph --pretty=format:'%C(yellow bold)%h %Creset%C(white dim)[%Creset%an%Creset%C(white dim)]%Creset%C(yellow bold)%d %Creset%C(white bold)%s %C(white dim)<%ad|%cr>%Creset' --date=relative + + # Style 2 + # lg = log --graph --pretty=format:'%C(yellow bold)%h [%Creset%an%Creset%C(yellow bold)]%d %Creset%C(white bold)%s %C(white dim)<%ad|%cr>%Creset' --date=relative + + # Style 3 + #lg = log --graph --pretty=format:'%C(yellow bold)%h %Creset<%an> %C(yellow bold)%d %Creset%C(white bold)%s %C(white dim)<%ad|%cr>%Creset' --date=relative + + # Style 4 + # lg = log --graph --pretty=format:'%C(yellow bold)%h %Creset[%an] %C(yellow bold)|%d %Creset%C(white bold)%s %C(white dim)<%ad|%cr>%Creset' --date=relative + + # Style 5 + # lg = log --graph --pretty=format:'%C(yellow bold)%h|%Creset%an%Creset%C(yellow bold)|%d %Creset%C(white bold)%s %C(white dim)<%ad|%cr>%Creset' --date=relative + + # Style 6 + #lg = log --graph --pretty=format:'%C(yellow bold)%h|%Creset%C(yellow dim)%an%Creset%C(yellow bold)|%d %Creset%C(white bold)%s %C(white dim)<%ad|%cr>%Creset' --date=relative + + # Style 7 + #lg = log --graph --pretty=format:'%C(yellow bold)%h %Creset%C(yellow dim)%an %Creset%C(yellow bold)|%d %Creset%C(white bold)%s %C(white dim)[%ad|%cr]%Creset' --date=relative + + # Style 8 + #lg = log --graph --pretty=format:'%C(yellow bold)%h%Creset%C(white dim)|%Creset%an%Creset%C(white dim) >%Creset%C(yellow bold)%d %Creset%C(white bold)%s %C(white dim)<%ad|%cr>%Creset' --date=relative + + # Style 9 + lg = log --graph --pretty=format:'%C(yellow bold)%h%C(black bold)|%C(white dim)%an%Creset%C(yellow bold) >%d %Creset%C(white bold)%s %C(black bold)<%ad|%cr>%Creset' --date=relative + + # Style 10 + #lg = log --graph --pretty=format:'%C(yellow bold)%h %Creset%C(yellow dim)%an%Creset%C(yellow bold) >%d %Creset%C(white bold)%s %C(white dim)<%ad|%cr>%Creset' --date=relative + start = !git init && git commit --allow-empty -m \"Initial commit\" [rerere] enabled = true