Class: GitDiffToHtml
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
188
189
190
|
# File 'lib/diff_to_html.rb', line 188
def
/^diff --git.+/
end
|
#get_filename(file_diff) ⇒ Object
192
193
194
195
196
|
# File 'lib/diff_to_html.rb', line 192
def get_filename(file_diff)
match = (file_diff =~ / b\/(.+)/)
raise "not matched!" if !match
$1
end
|