Update git log formatting
This commit is contained in:
parent
aed80c1bab
commit
461263a61e
|
@ -1,11 +1,9 @@
|
||||||
dotfiles
|
# dotfiles
|
||||||
========
|
|
||||||
|
|
||||||
Various dotfiles and misc configs. Some of it is customized around my system setup
|
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.
|
(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
|
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
|
full system setup and this script may not be fully complete. An alternative method is to manually
|
||||||
|
|
36
gitconfig
36
gitconfig
|
@ -39,7 +39,41 @@
|
||||||
# opposed to %cr which is the commiter's timestamp. I prefer the former
|
# 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
|
# because I sometimes edit an earlier commit message while rebasing and I
|
||||||
# want to continue to see the original date.
|
# 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\"
|
start = !git init && git commit --allow-empty -m \"Initial commit\"
|
||||||
[rerere]
|
[rerere]
|
||||||
enabled = true
|
enabled = true
|
||||||
|
|
Loading…
Reference in New Issue
Block a user