Method: Git::Diff#initialize

Defined in:
lib/git/diff.rb

#initialize(base, from = nil, to = nil) ⇒ Diff

Returns a new instance of Diff.

[View source]

9
10
11
12
13
14
15
16
17
18
# File 'lib/git/diff.rb', line 9

def initialize(base, from = nil, to = nil)
  @base = base
  @from = from && from.to_s
  @to = to && to.to_s

  @path = nil
  @full_diff = nil
  @full_diff_files = nil
  @stats = nil
end