Created
February 19, 2014 15:06
-
-
Save gusaaaaa/9093900 to your computer and use it in GitHub Desktop.
Opens a tab per each file in conflict
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
git status | grep 'both modified' | awk '{print $4}' | vim -p `tr '\n' ' '` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That's inefficient. A better approach is
vim -o $(git diff --name-only --diff-filter=U | xargs)
(or-p
if you are one of those people who use tabs instead of windows).