Class: FindChangedFiles::SinceRef

Inherits:
FindChangedFiles show all
Defined in:
lib/find_changed_files/since_ref.rb

Constant Summary collapse

CURRENT_REF =
'HEAD'

Constants inherited from FindChangedFiles

GIT_DIFF_COMMAND, GIT_DIFF_OPTIONS, REDIRECT_STDERR_TO_STDOUT

Instance Attribute Summary collapse

Attributes inherited from FindChangedFiles

#diff_ref

Instance Method Summary collapse

Constructor Details

#initialize(base_ref:) ⇒ SinceRef

Returns a new instance of SinceRef.



6
7
8
# File 'lib/find_changed_files/since_ref.rb', line 6

def initialize(base_ref:)
  @base_ref = base_ref
end

Instance Attribute Details

#base_refObject (readonly)

Returns the value of attribute base_ref.



2
3
4
# File 'lib/find_changed_files/since_ref.rb', line 2

def base_ref
  @base_ref
end

Instance Method Details

#callObject



10
11
12
13
# File 'lib/find_changed_files/since_ref.rb', line 10

def call
  changed_files_between_commits +
    changed_files_in_diff
end