use diff-so-fancy for git diff
This commit is contained in:
parent
2b6001e75c
commit
755087a155
19
.gitconfig
19
.gitconfig
@ -1,9 +1,24 @@
|
|||||||
[alias]
|
[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
|
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
|
stat = status -sb
|
||||||
tags = !git log --decorate=full --all --pretty=format:'%ai %d %s' --abbrev-commit | grep 'refs/tags' | sed -E 's/\\(tag:.+\\)[[:space:]]//'
|
tags = !git log --decorate=full --all --pretty=format:'%ai %d %s' --abbrev-commit | grep 'refs/tags' | sed -E 's/\\(tag:.+\\)[[:space:]]//'
|
||||||
[color]
|
[color]
|
||||||
ui = true
|
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]
|
[user]
|
||||||
email = tommy.mont@gmail.com
|
email = tommy.mont@gmail.com
|
||||||
name = tmont
|
name = tmont
|
||||||
@ -14,4 +29,4 @@
|
|||||||
[mergetool]
|
[mergetool]
|
||||||
keepBackup = false
|
keepBackup = false
|
||||||
[core]
|
[core]
|
||||||
pager = less -x4
|
pager = diff-so-fancy | less -x4 -RFX
|
||||||
|
Loading…
Reference in New Issue
Block a user