Sha256: 0cae218c5efa8db2faa44f59ac5f8031d00cd003fbcf77c157bfddd73aaf29cb

Contents?: true

Size: 381 Bytes

Versions: 3

Compression:

Stored size: 381 Bytes

Contents

require 'straight_line/common/util'

# Util class for common git related actions
module GitCommands
  def handle_merge_conflict(e)
    if e.message =~ /Merge conflict in/
      Util.logger.error '***** Hint: this looks like a merge conflict.
          Try fixing the conflicts, then run `git add .` and then run the
          previous command again.'
    end
    raise e
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
straight_line-0.1.4.0 lib/straight_line/common/git_commands.rb
straight_line-0.1.3.0 lib/straight_line/common/git_commands.rb
straight_line-0.1.2.0 lib/straight_line/common/git_commands.rb