Created
June 8, 2012 09:28
-
-
Save lazyatom/2894693 to your computer and use it in GitHub Desktop.
Open all files with changes in TextMate
This file contains 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
#!/usr/bin/env ruby | |
git_changes = `git status --porcelain | awk '{print $2}'` | |
files = [] | |
git_changes.split.each do |file| | |
if File.directory?(file) | |
files += Dir["#{file}**/*"] | |
else | |
files << file | |
end | |
end | |
files.each { |f| `mate #{f}` } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment