diff options
Diffstat (limited to 'lib/redmine/scm/adapters/abstract_adapter.rb')
-rw-r--r-- | lib/redmine/scm/adapters/abstract_adapter.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/redmine/scm/adapters/abstract_adapter.rb b/lib/redmine/scm/adapters/abstract_adapter.rb index b74fa1b18..16cbef613 100644 --- a/lib/redmine/scm/adapters/abstract_adapter.rb +++ b/lib/redmine/scm/adapters/abstract_adapter.rb @@ -35,6 +35,10 @@ module Redmine 'Abstract' end + def supports_cat? + true + end + def root_url @root_url end @@ -209,7 +213,7 @@ module Redmine def initialize (diff, type="inline") diff_table = DiffTable.new type diff.each do |line| - if line =~ /^(Index:|diff) (.*)$/ + if line =~ /^(---|\+\+\+) (.*)$/ self << diff_table if diff_table.length > 1 diff_table = DiffTable.new type end @@ -237,7 +241,7 @@ module Redmine # Function for add a line of this Diff def add_line(line) unless @parsing - if line =~ /^(Index:|diff) (.*)$/ + if line =~ /^(---|\+\+\+) (.*)$/ @file_name = $2 return false elsif line =~ /^@@ (\+|\-)(\d+)(,\d+)? (\+|\-)(\d+)(,\d+)? @@/ |