use diff-so-fancy for git diff
This commit is contained in:
parent
2b6001e75c
commit
755087a155
17
.gitconfig
17
.gitconfig
@ -1,9 +1,24 @@
|
||||
[alias]
|
||||
lg = log --color --graph --pretty=format:'%Cred%h%Creset %Cgreen(%cr)%Creset %C(bold blue)%an%Creset%C(yellow)%d%Creset %s' --abbrev-commit
|
||||
old-branches = for-each-ref refs/remotes/origin/ --sort=committerdate --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) %(color:blue)%(authorname)%(color:reset) (%(color:green)%(committerdate:relative)%(color:reset))'
|
||||
release-count = !git releases | cut -f 3 | sort | uniq -c | sort -n -r
|
||||
releases = !git log --date=local --decorate=full --all --pretty=format:'%Cgreen%ai%Creset\t%Cred%h%Creset\t%Cblue%cn%Creset\t%d\t%s' --abbrev-commit | grep -E 'release:? v?[0-9]+\\.[0-9]+\\.[0-9]+(:| -)' | perl -p -e 's%\\(.*?tag: .+?\\)\\s*release(:\\s*)?%%' | sort -i
|
||||
stat = status -sb
|
||||
tags = !git log --decorate=full --all --pretty=format:'%ai %d %s' --abbrev-commit | grep 'refs/tags' | sed -E 's/\\(tag:.+\\)[[:space:]]//'
|
||||
[color]
|
||||
ui = true
|
||||
[color "diff-highlight"]
|
||||
oldNormal = "red bold"
|
||||
oldHighlight = "red bold 52"
|
||||
newNormal = "green bold"
|
||||
newHighlight = "green bold 22"
|
||||
[color "diff"]
|
||||
meta = "yellow"
|
||||
frag = "magenta bold"
|
||||
commit = "yellow bold"
|
||||
old = "red bold"
|
||||
new = "green bold"
|
||||
whitespace = "red reverse"
|
||||
[user]
|
||||
email = tommy.mont@gmail.com
|
||||
name = tmont
|
||||
@ -14,4 +29,4 @@
|
||||
[mergetool]
|
||||
keepBackup = false
|
||||
[core]
|
||||
pager = less -x4
|
||||
pager = diff-so-fancy | less -x4 -RFX
|
||||
|
Loading…
Reference in New Issue
Block a user