From d1f5cf4b79c18b8164bf516d05c9eab8679cb011 Mon Sep 17 00:00:00 2001 From: xerus2000 <27jf@pm.me> Date: Mon, 11 Jan 2021 12:27:55 +0100 Subject: [PATCH] config/git: add diff aliases & diffr --- .config/git/config | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.config/git/config b/.config/git/config index 89b94c3..39ae0e5 100644 --- a/.config/git/config +++ b/.config/git/config @@ -1,6 +1,9 @@ [core] autocrlf = input editor = nvim + pager = diffr | less -R +[interactive] + diffFilter = diffr [submodule] recurse = true [rerere] @@ -76,6 +79,12 @@ co-authors = !git log | grep -i Co-Authored | awk '!a[$0]++' when = git for-each-ref --sort=committerdate --format='%(refname:short) * %(authorname) * %(committerdate:relative)' refs/remotes/ # List all branches with their last updates + d = diff + dw = diff --color-words + dc = diff --color-words="[^[:space:]]|([[:alnum:]]|UTF_8_GUARD)+" + + # MODIFY + # Local Changes a = add -u aa = add -u .