Skip to content

Commit

Permalink
update git fix perms scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
oasido committed Sep 5, 2024
1 parent ef9a54c commit d12619c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .local/bin/scripts/git-fix-perms
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
git diff -p \
| grep -E '^(diff|old mode|new mode)' \
| sed -e 's/^old/NEW/;s/^new/old/;s/^NEW/new/' \
# git diff -p \
# | grep -E '^(diff|old mode|new mode)' \
# | sed -e 's/^old/NEW/;s/^new/old/;s/^NEW/new/' \
# | git apply
git diff -p -R --no-ext-diff --no-color --diff-filter=M \
| grep -E "^(diff|(old|new) mode)" --color=never \
| git apply

0 comments on commit d12619c

Please sign in to comment.