Commit 4f5fff50266d2e02d9cb35ea11bf4efad0ba509d

removed unused functionality of Diff::Display

Commit diff

TODO.txt

 
2323[ ] Detect renames etc when showing a commit
2424[ ] Always add a "mainline-upstream" branch that track the mainline repos automagically to clones
2525[ ] email repository owners when there's a new comment
26[ ] Clean up in Diff::Display::Unified
2627---
2728
2829a ProjectMirror that sucks in svn repositories. They need to be differentiated form normal projects (don't display owner etc, since it's a mirror). Also, the mainline repository should probably be immutable so people can commit changes to the actual mirror.
toggle raw diff

vendor/diff-display/lib/diff/display/unified.rb

 
169169
170170 class AddLine < Line #:nodoc:#
171171 def initialize(line, line_number, inline = false)
172 line = inline ? line % [inline_add_open, inline_add_close] : line
172 #line = inline ? line % [inline_add_open, inline_add_close] : line
173173 super(line, line_number)
174174 @inline = inline
175175 self
178178
179179 class RemLine < Line #:nodoc:#
180180 def initialize(line, line_number, inline = false)
181 line = inline ? line % [inline_rem_open, inline_rem_close] : line
181 #line = inline ? line % [inline_rem_open, inline_rem_close] : line
182182 super(line, line_number)
183183 @inline = inline
184184 self
407407 # can insert the desired formating
408408 def inline_diff(line, start, ending)
409409 line[0, start] +
410 '%s' + extract_change(line, start, ending) + '%s' +
410 #'%s' + extract_change(line, start, ending) + '%s' +
411 extract_change(line, start, ending) +
411412 line[ending, ending.abs]
412413 end
413414
628628 def escape(text)
629629 #CGI::escapeHTML(text)
630630 text.gsub('&', '&amp;').
631 gsub('<', '&lt;' ).
631 gsub('<', '&lt;' ).
632632 gsub('>', '&gt;' ).
633633 gsub('"', '&#34;')
634634 end
toggle raw diff