class Pronto::Git::Patches
def find_line(path, line)
def find_line(path, line) patch = find { |p| p.new_file_full_path == path } lines = patch ? patch.lines : [] lines.find { |l| l.new_lineno == line } end
def find_line(path, line) patch = find { |p| p.new_file_full_path == path } lines = patch ? patch.lines : [] lines.find { |l| l.new_lineno == line } end