Method: Git::Diff::DiffFile#initialize

Defined in:
lib/git/diff.rb

#initialize(base, hash) ⇒ DiffFile

Returns a new instance of DiffFile.



76
77
78
79
80
81
82
83
84
85
# File 'lib/git/diff.rb', line 76

def initialize(base, hash)
  @base = base
  @patch = hash[:patch]
  @path = hash[:path]
  @mode = hash[:mode]
  @src = hash[:src]
  @dst = hash[:dst]
  @type = hash[:type]
  @binary = hash[:binary]
end