config/git: add diff aliases & diffr
This commit is contained in:
parent
758d0542b0
commit
d1f5cf4b79
|
@ -1,6 +1,9 @@
|
||||||
[core]
|
[core]
|
||||||
autocrlf = input
|
autocrlf = input
|
||||||
editor = nvim
|
editor = nvim
|
||||||
|
pager = diffr | less -R
|
||||||
|
[interactive]
|
||||||
|
diffFilter = diffr
|
||||||
[submodule]
|
[submodule]
|
||||||
recurse = true
|
recurse = true
|
||||||
[rerere]
|
[rerere]
|
||||||
|
@ -76,6 +79,12 @@
|
||||||
co-authors = !git log | grep -i Co-Authored | awk '!a[$0]++'
|
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
|
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
|
# Local Changes
|
||||||
a = add -u
|
a = add -u
|
||||||
aa = add -u .
|
aa = add -u .
|
||||||
|
|
Loading…
Reference in New Issue