From 1f466570db785b1544b2b39a297e50144ea8bd3d Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Fri, 5 Apr 2019 14:30:27 -0400 Subject: [PATCH] Add permission-reset --- git/.gitconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/git/.gitconfig b/git/.gitconfig index d8b273f..080144a 100644 --- a/git/.gitconfig +++ b/git/.gitconfig @@ -28,6 +28,7 @@ find-file = "!for branch in $(git for-each-ref --format=\"%(refname)\" refs/heads); do if git ls-tree -r --name-only $branch | grep \"$1\" > /dev/null; then echo \"${branch}:\"; git ls-tree -r --name-only $branch | nl -bn -w3 | grep \"$1\"; fi; done; :" # n => no pager ndiff = !git --no-pager diff + permission-reset = "!git diff -p -R --no-color | grep -E \"^(diff|(old|new) mode)\" --color=never | git apply" [push] default = matching [core]