Sha256: 52c33d11236128957b5f386690fdb516bafcc66c26653ebfbbf72f1f4e9f623b

Contents?: true

Size: 514 Bytes

Versions: 19

Compression:

Stored size: 514 Bytes

Contents

module Redcar
  module Scm
    class DiffMirror
      include Redcar::Document::Mirror
      
      def initialize(change, diff)
        @change = change
        @diff = diff
      end
      
      def title
        "Diff: #{@change.path}"
      end
      
      def exists?
        true
      end
      
      # Diffs don't change. Each time the tree is refreshed, new Change
      # objects are created.
      def changed?
        false
      end
      
      def read
        @diff
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
redcar-0.9.2 plugins/scm/lib/scm/diff_mirror.rb
redcar-0.9.1 plugins/scm/lib/scm/diff_mirror.rb
redcar-0.9.0 plugins/scm/lib/scm/diff_mirror.rb
redcar-0.8.1 plugins/scm/lib/scm/diff_mirror.rb
redcar-0.8 plugins/scm/lib/scm/diff_mirror.rb
redcar-0.7 plugins/scm/lib/scm/diff_mirror.rb
redcar-0.6.1 plugins/scm/lib/scm/diff_mirror.rb
redcar-0.6 plugins/scm/lib/scm/diff_mirror.rb
redcar-0.6.1dev plugins/scm/lib/scm/diff_mirror.rb
redcar-0.5.1 plugins/scm/lib/scm/diff_mirror.rb
redcar-0.5 plugins/scm/lib/scm/diff_mirror.rb
redcar-0.5.6dev plugins/scm/lib/scm/diff_mirror.rb
redcar-0.5.5dev plugins/scm/lib/scm/diff_mirror.rb
redcar-0.5.4dev plugins/scm/lib/scm/diff_mirror.rb
redcar-0.5.3dev plugins/scm/lib/scm/diff_mirror.rb
redcar-0.5.2dev plugins/scm/lib/scm/diff_mirror.rb
redcar-0.5.1dev plugins/scm/lib/scm/diff_mirror.rb
redcar-0.4.1 plugins/scm/lib/scm/diff_mirror.rb
redcar-0.4 plugins/scm/lib/scm/diff_mirror.rb