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


45
46
47
# File 'lib/overcommit/hook_context/post_rewrite.rb', line 45

def new_hash
  @new_hash
end

#old_hashObject

Returns the value of attribute old_hash


45
46
47
# File 'lib/overcommit/hook_context/post_rewrite.rb', line 45

def old_hash
  @old_hash
end