Module: Command::PrintDiff

Included in:
Diff, Log
Defined in:
lib/command/shared/print_diff.rb

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_optionsObject



24
25
26
27
# File 'lib/command/shared/print_diff.rb', line 24

def define_print_diff_options
  @parser.on("-p", "-u", "--patch") { @options[:patch] = true  }
  @parser.on("-s", "--no-patch")    { @options[:patch] = false }
end