From d12619ca6365bada06c427c0739e22a8d6ce07f1 Mon Sep 17 00:00:00 2001 From: oasido Date: Mon, 2 Sep 2024 09:36:53 +0300 Subject: [PATCH] update git fix perms scripts --- .local/bin/scripts/git-fix-perms | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.local/bin/scripts/git-fix-perms b/.local/bin/scripts/git-fix-perms index ab408f0..1485168 100755 --- a/.local/bin/scripts/git-fix-perms +++ b/.local/bin/scripts/git-fix-perms @@ -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 -