Sha256: d956f6464d447d548e7ef3a7a21688756bb3a769af44b4703c2d493a1c56cf6e

Contents?: true

Size: 451 Bytes

Versions: 28

Compression:

Stored size: 451 Bytes

Contents

module Grit
  class Blob

    alias_method :old_name, :name
    alias_method :old_data, :data

    def name
      GritExt.encode! old_name
    end

    def data
      GritExt.encode! old_data
    end

    class << self
      alias_method :old_blame, :blame

      def blame(repo, commit, file)
        old_blame(repo, commit, file).map do |b,lines|
          [b, GritExt.encode!(lines.join('\n')).split('\n')]
        end
      end
    end

  end
end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
gitlab-grit-2.8.3 lib/grit_ext/blob.rb
gitlab-grit-2.8.2 lib/grit_ext/blob.rb
gitlab-grit-2.8.1 lib/grit_ext/blob.rb
gitlab-grit-2.8.0 lib/grit_ext/blob.rb
gitlab-grit-2.7.3 lib/grit_ext/blob.rb
gitlab-grit-2.6.12 lib/grit_ext/blob.rb
gitlab-grit-2.7.2 lib/grit_ext/blob.rb
gitlab-grit-2.6.11 lib/grit_ext/blob.rb
gitlab-grit-2.7.1 lib/grit_ext/blob.rb
gitlab-grit-2.6.10 lib/grit_ext/blob.rb
gitlab-grit-2.7.0 lib/grit_ext/blob.rb
gitlab-grit-2.6.9 lib/grit_ext/blob.rb
gitlab-grit-2.6.8 lib/grit_ext/blob.rb
gitlab-grit-2.6.7 lib/grit_ext/blob.rb
gitlab-grit-2.6.6 lib/grit_ext/blob.rb
gitlab-grit-2.6.5 lib/grit_ext/blob.rb
gitlab-grit-2.6.4 lib/grit_ext/blob.rb
gitlab-grit-2.6.3 lib/grit_ext/blob.rb
gitlab-grit-2.6.2 lib/grit_ext/blob.rb
gitlab-grit-2.5.2 lib/grit_ext/blob.rb