Method: GitProc::ChangeFileHelper#offer_to_help_uncommitted_changes

Defined in:
lib/git-process/changed_file_helper.rb

#offer_to_help_uncommitted_changesObject



33
34
35
36
37
38
39
40
41
42
43
# File 'lib/git-process/changed_file_helper.rb', line 33

def offer_to_help_uncommitted_changes
  stat = gitlib.status

  if stat.unmerged.empty?
    handle_unknown_files(stat)
    handle_changed_files(gitlib.status) # refresh status in case it changed earlier
  else
    gitlib.logger.info { "Can not offer to auto-add unmerged files: #{stat.unmerged.inspect}" }
    raise UncommittedChangesError.new
  end
end