Sha256: 93c650940039138db846beabae0a5ff0ebda9c8f4aa627f39bf5d747d45dc765

Contents?: true

Size: 499 Bytes

Versions: 38

Compression:

Stored size: 499 Bytes

Contents

module Redcar
  module Scm
    class DiffMirror
      include Redcar::Document::Mirror

      def initialize(change, diff)
        @change = change
        @diff = diff
      end

      def title
        "Diff: #{File.basename(@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

38 entries across 38 versions & 2 rubygems

Version Path
redcar-0.13 plugins/scm/lib/scm/diff_mirror.rb
redcar-dev-0.13.5dev plugins/scm/lib/scm/diff_mirror.rb
redcar-dev-0.13.4dev plugins/scm/lib/scm/diff_mirror.rb
redcar-dev-0.13.3dev plugins/scm/lib/scm/diff_mirror.rb
redcar-dev-0.13.2dev plugins/scm/lib/scm/diff_mirror.rb
redcar-dev-0.13.1dev plugins/scm/lib/scm/diff_mirror.rb
redcar-0.12.1 plugins/scm/lib/scm/diff_mirror.rb
redcar-dev-0.13.0dev plugins/scm/lib/scm/diff_mirror.rb
redcar-0.12 plugins/scm/lib/scm/diff_mirror.rb
redcar-dev-0.12.27dev plugins/scm/lib/scm/diff_mirror.rb
redcar-dev-0.12.26dev plugins/scm/lib/scm/diff_mirror.rb
redcar-dev-0.12.25dev plugins/scm/lib/scm/diff_mirror.rb
redcar-dev-0.12.24dev plugins/scm/lib/scm/diff_mirror.rb
redcar-dev-0.12.23dev plugins/scm/lib/scm/diff_mirror.rb
redcar-dev-0.12.22dev plugins/scm/lib/scm/diff_mirror.rb
redcar-dev-0.12.21dev plugins/scm/lib/scm/diff_mirror.rb
redcar-dev-0.12.20dev plugins/scm/lib/scm/diff_mirror.rb
redcar-dev-0.12.19dev plugins/scm/lib/scm/diff_mirror.rb
redcar-dev-0.12.18dev plugins/scm/lib/scm/diff_mirror.rb
redcar-dev-0.12.17dev plugins/scm/lib/scm/diff_mirror.rb