Class: FindChangedFiles::SinceRef
- Inherits:
-
FindChangedFiles
- Object
- FindChangedFiles
- FindChangedFiles::SinceRef
- 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
-
#base_ref ⇒ Object
readonly
Returns the value of attribute base_ref.
Attributes inherited from FindChangedFiles
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(base_ref:) ⇒ SinceRef
constructor
A new instance of SinceRef.
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_ref ⇒ Object (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
#call ⇒ Object
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 |