Class: SvnDiffToHtml

Inherits:
DiffToHtml show all
Defined in:
lib/diff_to_html.rb

Instance Attribute Summary

Attributes inherited from DiffToHtml

#file_prefix

Instance Method Summary collapse

Methods inherited from DiffToHtml

#begin_file, #composite_to_html, #diffs_to_html, #flush_changes, #get_diff_row, #get_diffs, #get_single_file_diff, #ln_cell, #range_info, #range_row

Instance Method Details

#file_header_patternObject



200
201
202
# File 'lib/diff_to_html.rb', line 200

def file_header_pattern
  /^Index: .+/
end

#get_filename(header) ⇒ Object



204
205
206
207
208
# File 'lib/diff_to_html.rb', line 204

def get_filename(header)
  match = (header =~ /^Index: (.+)/) #if we use this pattern file_header_pattern files split doesn't work
  raise "header '#{header}' not matched!" if !match
  $1
end