Method: Git::Lib#unmerged

Defined in:
lib/git/lib.rb

#unmerged

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



1356
1357
1358
1359
1360
1361
1362
# File 'lib/git/lib.rb', line 1356

def unmerged
  unmerged = []
  command_lines('diff', '--cached').each do |line|
    unmerged << ::Regexp.last_match(1) if line =~ /^\* Unmerged path (.*)/
  end
  unmerged
end