Sha256: 633f711a7b981a125e192a966b47273978d98981ed61a450c1b15808eb0b84df

Contents?: true

Size: 451 Bytes

Versions: 1

Compression:

Stored size: 451 Bytes

Contents

# frozen_string_literal: true

module Git
  class GitCommit
    attr_reader :sha, :message, :commit_date, :author_name, :author_email

    def initialize(sha, message, commit_date, author_name, author_email)
      @sha = sha
      @message = message
      @commit_date = commit_date
      @author_email = author_email
      @author_name = author_name
    end

    def to_s
      sha
    end

    def ==(other)
      sha == other.sha
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
git_lib-1.2.0 lib/git/git_commit.rb