Skip to content

Instantly share code, notes, and snippets.

@foca
Created October 10, 2009 23:15
Show Gist options
  • Save foca/207233 to your computer and use it in GitHub Desktop.
Save foca/207233 to your computer and use it in GitHub Desktop.
open a vim buffer for each unmerged file in git
[alias]
unmerged = !vim -o $(git-unmerged-files)
#!/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