Created
August 4, 2014 23:31
-
-
Save pbeardshear/b254bbcfb95b2c81f04b to your computer and use it in GitHub Desktop.
Reset all those pesky .csproj files when attaching to w3wp process..
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
| #!/bin/python | |
| from subprocess import call, check_output | |
| out = check_output(['git', 'status', '-s']) | |
| lines = [l.strip().split(' ')[1] for l in out.splitlines()] | |
| for line in lines: | |
| if '.csproj' in line: | |
| remove = raw_input('Reset project: ' + line + '? ') | |
| if remove.lower() == 'y': | |
| print 'Resetting project: ' + line | |
| call(['git', 'checkout', line]) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment