Created
July 6, 2015 18:13
-
-
Save desyncr/84cf0c6d84729b138e13 to your computer and use it in GitHub Desktop.
Fix permissions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git diff "$@" | | |
perl -ne ' | |
if (/^diff/) { $diff = $_ } | |
elsif (/^old mode/) { print $diff, $_ } | |
elsif (/^new mode/) { print $_ } | |
' | | |
git apply -R |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment