Skip to content

Instantly share code, notes, and snippets.

@morganchristiansson
Forked from foca/.gitconfig
Created February 15, 2011 10:34
Show Gist options
  • Save morganchristiansson/827375 to your computer and use it in GitHub Desktop.
Save morganchristiansson/827375 to your computer and use it in GitHub Desktop.
[alias]
unmerged = !vim -o $(git-unmerged-files)
#!/usr/bin/env ruby
puts `git status`.split("\n").select {|f| f =~ /(?:unmerged|both modified)/ }.map {|f| f.gsub(/#\s+(?:unmerged|both modified):\s*/, "") }.join(" ")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment