Sha256: 67b6a2e1a26e9622e0995ea659a03f97e4567bf25093c3fec6dcc0f4549ff226

Contents?: true

Size: 531 Bytes

Versions: 1

Compression:

Stored size: 531 Bytes

Contents

# frozen_string_literal: true

require_relative '../hash_initializable'

module GitStats
  module GitData
    class Tree
      include GitStats::HashInitializable

      attr_reader :repo, :relative_path

      def authors
        @authors ||= run_and_parse("git shortlog -se #{commit_range}").map do |author|
          Author.new(repo: self, name: author[:name], email: author[:email])
        end
      end

      def ==(other)
        ((repo == other.repo) && (relative_path == other.relative_path))
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nova_git_stats-2.3.0 lib/git_stats/git_data/tree.rb