Exception: Bringit::Committing::HeadChangedError

Inherits:
Error
  • Object
show all
Defined in:
lib/bringit/committing.rb

Overview

This error is thrown when attempting to commit on a branch whose HEAD has changed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, conflicts, options) ⇒ HeadChangedError

Returns a new instance of HeadChangedError.



18
19
20
21
22
# File 'lib/bringit/committing.rb', line 18

def initialize(message, conflicts, options)
  super(message)
  @conflicts = conflicts
  @options = options
end

Instance Attribute Details

#conflictsObject (readonly)

Returns the value of attribute conflicts.



17
18
19
# File 'lib/bringit/committing.rb', line 17

def conflicts
  @conflicts
end

#optionsObject (readonly)

Returns the value of attribute options.



17
18
19
# File 'lib/bringit/committing.rb', line 17

def options
  @options
end