Class: Mutant::Repository::Diff Private
- Inherits:
-
Object
- Object
- Mutant::Repository::Diff
- Includes:
- Unparser::Adamantium
- Defined in:
- lib/mutant/repository/diff.rb,
lib/mutant/repository/diff/ranges.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Diff index between HEAD and a tree reference
Defined Under Namespace
Modules: Ranges Classes: Error, Path
Constant Summary collapse
- FORMAT =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
/\A:\d{6} \d{6} [a-f\d]{40} [a-f\d]{40} [ACDMRTUX]\t(.*)\n\z/.freeze
Instance Method Summary collapse
-
#touches?(path, line_range) ⇒ Boolean
private
Test if diff changes file at line range.
Instance Method Details
#touches?(path, line_range) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Test if diff changes file at line range
24 25 26 27 28 29 |
# File 'lib/mutant/repository/diff.rb', line 24 def touches?(path, line_range) touched_paths .from_right { || fail Error, } .fetch(path) { return false } .touches?(line_range) end |