Use delta as git diff

This commit is contained in:
rydesun 2021-07-31 22:56:22 +08:00
parent a07e001ac9
commit ac66ae682d

View file

@ -28,3 +28,27 @@
helper = cache
[url "https://github.com"]
insteadOf = git://github.com
[pager]
diff = delta
show = delta
log = delta
reflog = delta
[interactive]
diffFilter = delta --color-only --features=interactive
[delta]
features = decorations
[delta "decorations"]
commit-decoration-style = bold yellow ul
file-style = bold yellow
file-decoration-style = yellow box
hunk-header-style = file line-number syntax
hunk-header-decoration-style = cyan box
hunk-header-file-style = cyan
hunk-header-line-number-style = yellow
[delta "interactive"]
keep-plus-minus-markers = false