class DiffToHtml::GitConverter

Public Instance Methods

file_header_pattern() click to toggle source
# File lib/diff_to_html/git_converter.rb, line 3
def file_header_pattern
  /^diff --git.+/
end
get_filename(file_diff) click to toggle source
# File lib/diff_to_html/git_converter.rb, line 7
def get_filename(file_diff)
  match = (file_diff =~ / b\/(.+)/)
  raise "not matched!" if !match
  $1
end