Class: PVN::Diff::ChangeOption

Inherits:
BaseRevisionOption show all
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

BaseOption::NO_CMDLINE_OPTION

Instance Attribute Summary

Attributes inherited from BaseOption

#default, #description, #name, #negate, #regexp, #tag

Instance Method Summary collapse

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