Method: Overcommit::HookContext::PrePush#modified_lines_in_file

Defined in:
lib/overcommit/hook_context/pre_push.rb

#modified_lines_in_file(file) ⇒ Object



35
36
37
38
39
40
# File 'lib/overcommit/hook_context/pre_push.rb', line 35

def modified_lines_in_file(file)
  @modified_lines ||= {}
  @modified_lines[file] = pushed_refs.each_with_object(Set.new) do |pushed_ref, set|
    set.merge(pushed_ref.modified_lines_in_file(file))
  end
end