Method: Lazylead::Entry#diff
- Defined in:
- lib/lazylead/task/svn/grep.rb
#diff(text) ⇒ Object
Detect SVN diff lines with particular text
119 120 121 122 123 124 125 126 127 |
# File 'lib/lazylead/task/svn/grep.rb', line 119 def diff(text) @diff ||= begin files = affected(text).uniq @commit.split("Index: ") .select { |i| files.any? { |f| i.start_with? f } } .map { |i| i.split "\n" } .flatten end end |