Created
December 15, 2014 15:29
-
-
Save jbodah/cb001f44b4bd3e480e98 to your computer and use it in GitHub Desktop.
open all unmerged files in vim
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
vim $(git status --porcelain | ag "(?<=UU ).*" | awk '{ print $2 }') |
To test all unmerged
git status --porcelain | ag "(?<=UU )test\/" | awk '{ print $2 }' | xargs -n 1 bundle exec ruby -Itest
Altogether now:
vim $(git status --porcelain | ag "(?<=UU ).*" | awk '{ print $2 }') && git status --porcelain | ag "(?<=UU )test\/" | awk '{ print $2 }' | xargs -n 1 bundle exec ruby -Itest
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This was useful for when I was editing merge conflicts
You can iterate through in vim with