config/git/diffr: create separate config

This commit is contained in:
xeruf 2022-04-03 22:25:00 +02:00
parent c43e7abada
commit 7741fa0a41
2 changed files with 6 additions and 3 deletions

View File

@ -1,10 +1,7 @@
[core] [core]
autocrlf = input autocrlf = input
editor = nvim editor = nvim
pager = diffr --colors refine-added:none:background:0x33,0x66,0x33:bold --colors added:none:background:0x33,0x44,0x33 --colors refine-removed:none:background:0x66,0x33,0x33:bold --colors removed:none:background:0x44,0x33,0x33 | less --RAW-CONTROL-CHARS --quit-on-intr
hooksPath = .dev/githooks hooksPath = .dev/githooks
[interactive]
diffFilter = diffr --colors refine-added:none:background:0x33,0x66,0x33:bold --colors added:none:background:0x33,0x44,0x33 --colors refine-removed:none:background:0x66,0x33,0x33:bold --colors removed:none:background:0x44,0x33,0x33
[submodule] [submodule]
recurse = true recurse = true
[rerere] [rerere]
@ -185,5 +182,7 @@
rg = rmgonebranches rg = rmgonebranches
gcr = !git gc && git repack -a -d gcr = !git gc && git repack -a -d
[include]
path= "diffr"
[includeIf "gitdir:yadm/repo.git"] [includeIf "gitdir:yadm/repo.git"]
path = "~/.config/yadm/gitconfig" path = "~/.config/yadm/gitconfig"

4
.config/git/diffr Normal file
View File

@ -0,0 +1,4 @@
[core]
pager = diffr --colors refine-added:none:background:0x33,0x66,0x33:bold --colors added:none:background:0x33,0x44,0x33 --colors refine-removed:none:background:0x66,0x33,0x33:bold --colors removed:none:background:0x44,0x33,0x33 | less --RAW-CONTROL-CHARS --quit-on-intr
[interactive]
diffFilter = diffr --colors refine-added:none:background:0x33,0x66,0x33:bold --colors added:none:background:0x33,0x44,0x33 --colors refine-removed:none:background:0x66,0x33,0x33:bold --colors removed:none:background:0x44,0x33,0x33