[git] add delta-git for better diff output but setting diff-so-fancy as fallback

This commit is contained in:
Felix Buehler 2020-09-05 17:03:06 +02:00
parent 5a4c6c8acd
commit 6576a606da

View file

@ -12,9 +12,11 @@
[core] [core]
editor = vim editor = vim
eol = native eol = native
pager = diff-so-fancy | less --tabs=4 -RFX pager = delta || (diff-so-fancy | less --tabs=4 -RFX)
quotepath = false quotepath = false
commitGraph = true commitGraph = true
[interactive]
diffFilter = delta --color-only
[alias] [alias]
committree = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit committree = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
ct = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit ct = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
@ -62,3 +64,5 @@
whitespace = red reverse whitespace = red reverse
[gc] [gc]
writeCommitGraph = true writeCommitGraph = true
[delta]
line-numbers = true