Module: Command::PrintDiff
Defined Under Namespace
Classes: Target
Constant Summary collapse
- DIFF_FORMATS =
{ :context => :normal, :meta => :bold, :frag => :cyan, :old => :red, :new => :green }
- NULL_OID =
"0" * 40
- NULL_PATH =
"/dev/null"
Instance Method Summary collapse
Instance Method Details
#define_print_diff_options ⇒ Object
24 25 26 27 |
# File 'lib/command/shared/print_diff.rb', line 24 def @parser.on("-p", "-u", "--patch") { @options[:patch] = true } @parser.on("-s", "--no-patch") { @options[:patch] = false } end |