Add permission-reset

This commit is contained in:
Austen Adler 2019-04-05 14:30:27 -04:00
parent 854ecc91cb
commit 1f466570db

View File

@ -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; :" 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 # n => no pager
ndiff = !git --no-pager diff ndiff = !git --no-pager diff
permission-reset = "!git diff -p -R --no-color | grep -E \"^(diff|(old|new) mode)\" --color=never | git apply"
[push] [push]
default = matching default = matching
[core] [core]