Class: Overcommit::HookContext::PostRewrite::RewrittenCommit

Inherits:
Struct
  • Object
show all
Defined in:
lib/overcommit/hook_context/post_rewrite.rb

Overview

Struct encapsulating the old and new SHA1 hashes of a rewritten commit

Instance Attribute Summary collapse

Instance Attribute Details

#new_hashObject

Returns the value of attribute new_hash

Returns:

  • (Object)

    the current value of new_hash



47
48
49
# File 'lib/overcommit/hook_context/post_rewrite.rb', line 47

def new_hash
  @new_hash
end

#old_hashObject

Returns the value of attribute old_hash

Returns:

  • (Object)

    the current value of old_hash



47
48
49
# File 'lib/overcommit/hook_context/post_rewrite.rb', line 47

def old_hash
  @old_hash
end