From 7741fa0a41434e5c4abafbaf6f6bd32275fa66c2 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Sun, 3 Apr 2022 22:25:00 +0200 Subject: [PATCH] config/git/diffr: create separate config --- .config/git/config | 5 ++--- .config/git/diffr | 4 ++++ 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 .config/git/diffr diff --git a/.config/git/config b/.config/git/config index e1c4b4c..d5432d2 100644 --- a/.config/git/config +++ b/.config/git/config @@ -1,10 +1,7 @@ [core] autocrlf = input 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 -[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] recurse = true [rerere] @@ -185,5 +182,7 @@ rg = rmgonebranches gcr = !git gc && git repack -a -d +[include] + path= "diffr" [includeIf "gitdir:yadm/repo.git"] path = "~/.config/yadm/gitconfig" diff --git a/.config/git/diffr b/.config/git/diffr new file mode 100644 index 0000000..ad2151e --- /dev/null +++ b/.config/git/diffr @@ -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