git: use --word-diff. minimize delta
This commit is contained in:
parent
d25cbf6ea4
commit
fe5d005c2b
1 changed files with 12 additions and 5 deletions
15
.gitconfig
15
.gitconfig
|
@ -1,6 +1,6 @@
|
||||||
[core]
|
[core]
|
||||||
excludesfile = "~/.gitignore"
|
excludesfile = "~/.gitignore"
|
||||||
pager = delta --line-numbers --max-line-distance 0.9
|
pager = delta
|
||||||
compression = 0
|
compression = 0
|
||||||
looseCompression = 0
|
looseCompression = 0
|
||||||
|
|
||||||
|
@ -22,8 +22,10 @@ rebase = true
|
||||||
[alias]
|
[alias]
|
||||||
b = branch -va
|
b = branch -va
|
||||||
cl = clone --filter=blob:none
|
cl = clone --filter=blob:none
|
||||||
d = diff --stat -p -C
|
d = diff --stat -p -C --color-words
|
||||||
ds = diff --staged --stat -p -C
|
dg = diff --stat -p -C
|
||||||
|
ds = diff --staged --stat -p -C --color-words
|
||||||
|
sh = show --color-words
|
||||||
dt = difftool
|
dt = difftool
|
||||||
patch = !git --no-pager diff --no-color
|
patch = !git --no-pager diff --no-color
|
||||||
co = checkout
|
co = checkout
|
||||||
|
@ -72,8 +74,13 @@ threads = 0
|
||||||
date = relative
|
date = relative
|
||||||
|
|
||||||
[delta]
|
[delta]
|
||||||
# syntax-theme = GitHub
|
; # syntax-theme = GitHub
|
||||||
|
file-decoration-style=none
|
||||||
|
hunk-header-decoration-style=none
|
||||||
|
hunk-header-decoration-style='blue ul'
|
||||||
hunk-header-style = line-number syntax
|
hunk-header-style = line-number syntax
|
||||||
|
line-numbers = true
|
||||||
|
max-line-distance = 0.9
|
||||||
|
|
||||||
[hub]
|
[hub]
|
||||||
protocol = git
|
protocol = git
|
||||||
|
|
Loading…
Reference in a new issue