aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dot_gitconfig.tmpl1
1 files changed, 1 insertions, 0 deletions
diff --git a/dot_gitconfig.tmpl b/dot_gitconfig.tmpl
index 74c6103..52def6b 100644
--- a/dot_gitconfig.tmpl
+++ b/dot_gitconfig.tmpl
@@ -21,6 +21,7 @@
rl = reflog --format='%C(auto)%h %<|(20)%gd %C(blue)%cr%C(reset) %gs (%s)'
subrepo = !~/.local/lib/git-core/git-subrepo
+ addnw=!sh -c 'git diff -U0 -w --no-color "$@" | git apply --cached --ignore-whitespace --unidiff-zero -'
[push]
default = simple
[url "git://anonscm.debian.org"]