Sha256: e6c0a8f99aef9d16cf81d5781388fab8ea60b5b3010e750f20fc61f29726a431

Contents?: true

Size: 967 Bytes

Versions: 49

Compression:

Stored size: 967 Bytes

Contents

module Rugged
  class Diff
    class Delta
      attr_reader :owner
      alias diff owner

      attr_reader :old_file
      attr_reader :new_file
      attr_reader :similarity
      attr_reader :status
      attr_reader :status_char
      attr_reader :binary

      alias binary? binary

      def added?
        status == :added
      end

      def deleted?
        status == :deleted
      end

      def modified?
        status == :modified
      end

      def renamed?
        status == :renamed
      end

      def copied?
        status == :copied
      end

      def ignored?
        status == :ignored
      end

      def untracked?
        status == :untracked
      end

      def typechange?
        status == :typechange
      end

      def inspect
        "#<#{self.class.name}:#{object_id} {old_file: #{old_file.inspect}, new_file: #{new_file.inspect}, similarity: #{similarity.inspect}, status: #{status.inspect}>"
      end
    end
  end
end

Version data entries

49 entries across 49 versions & 2 rubygems

Version Path
rugged-0.24.6.1 lib/rugged/diff/delta.rb
rugged-0.24.5 lib/rugged/diff/delta.rb
rugged-0.25.0b10 lib/rugged/diff/delta.rb
rugged-0.25.0b9 lib/rugged/diff/delta.rb
rugged-0.25.0b8 lib/rugged/diff/delta.rb
rugged-0.25.0b7 lib/rugged/diff/delta.rb
rugged-0.25.0b6 lib/rugged/diff/delta.rb
rugged-0.25.0b5 lib/rugged/diff/delta.rb
rugged-0.25.0b4 lib/rugged/diff/delta.rb
rugged-0.25.0b3 lib/rugged/diff/delta.rb
rugged-0.25.0b2 lib/rugged/diff/delta.rb
rugged-0.25.0b1 lib/rugged/diff/delta.rb
rugged-0.24.0 lib/rugged/diff/delta.rb
rugged-0.24.0b14 lib/rugged/diff/delta.rb
rugged-0.24.0b13 lib/rugged/diff/delta.rb
rdavila-rugged-0.24.0b13 lib/rugged/diff/delta.rb
rugged-0.24.0b12 lib/rugged/diff/delta.rb
rugged-0.24.0b11 lib/rugged/diff/delta.rb
rugged-0.24.0b9 lib/rugged/diff/delta.rb
rugged-0.24.0b8 lib/rugged/diff/delta.rb