Created
October 10, 2009 23:15
-
-
Save foca/207233 to your computer and use it in GitHub Desktop.
open a vim buffer for each unmerged file in git
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
[alias] | |
unmerged = !vim -o $(git-unmerged-files) |
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 | |
puts `git status`.split("\n").select {|f| f =~ /unmerged/ }.map {|f| f.gsub(/#\s+unmerged:\s*/, "") }.join(" ") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment