Class: PVN::Diff::ChangeOption
- Inherits:
-
BaseRevisionOption
- Object
- BaseOption
- Option
- BaseRevisionOption
- PVN::Diff::ChangeOption
- Defined in:
- lib/pvn/diff/options.rb
Overview
a change option is like a revision option, just against the previous revision
Constant Summary
Constants inherited from BaseRevisionOption
BaseRevisionOption::REVISION_DESCRIPTION
Constants inherited from BaseOption
Instance Attribute Summary
Attributes inherited from BaseOption
#default, #description, #name, #negate, #regexp, #tag
Instance Method Summary collapse
-
#initialize(optargs = Hash.new) ⇒ ChangeOption
constructor
A new instance of ChangeOption.
Methods inherited from BaseRevisionOption
#entry, #head?, #relative_to_absolute, #resolve_value, #run_log_command
Methods inherited from BaseOption
#exact_match?, #negative_match?, #next_argument, #post_process, #process, #regexp_match?, #resolve_value, #set_value, #takes_value?, #to_command_line, #to_doc, #to_s, #unset, #value
Constructor Details
#initialize(optargs = Hash.new) ⇒ ChangeOption
Returns a new instance of ChangeOption.
19 20 21 |
# File 'lib/pvn/diff/options.rb', line 19 def initialize optargs = Hash.new super :change, '-c', 'use the given revision against the previous one', nil end |