Created
November 14, 2011 14:09
-
-
Save Tyrael/1364016 to your computer and use it in GitHub Desktop.
svn revert files in current directory having newline changes only
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
svn st|grep ^M|awk '{cmd = "svn diff -x --ignore-eol-style "$2;if ((cmd | getline result) <= 0) system("svn revert "$2);}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Needed to add support for (evil) filenames that have whitespaces, @, and any combination of () [] {}: