per line comments w/o tests & with dirty code
This commit is contained in:
parent
9da4d06a87
commit
99bb4a153d
11 changed files with 55391 additions and 12 deletions
|
@ -42,4 +42,11 @@ module CommitsHelper
|
|||
preserve out
|
||||
end
|
||||
|
||||
def build_line_code(line, index, line_new, line_old)
|
||||
if diff_line_class(line) == "new"
|
||||
"NEW_#{index}_#{line_new}"
|
||||
else
|
||||
"OLD_#{index}_#{line_old}"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue