config/git: add diff aliases & diffr

This commit is contained in:
xerus2000 2021-01-11 12:27:55 +01:00
parent 758d0542b0
commit d1f5cf4b79
1 changed files with 9 additions and 0 deletions

View File

@ -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 .