Sha256: 3343e87a489d3b63a3b4d8a51d626c4612095edfa16e9786af1a672fc38b0b55

Contents?: true

Size: 513 Bytes

Versions: 18

Compression:

Stored size: 513 Bytes

Contents

require 'r10k/git/ref'
require 'r10k/git/repository'

# commit: A 40-byte hex representation of a SHA1 referencing a specific commit
# @see https://www.kernel.org/pub/software/scm/git/docs/gitglossary.html
# @api private
class R10K::Git::Commit < R10K::Git::Ref

  # @!attribute [r] commit
  #   @return [String] The git commit
  attr_reader :commit
  alias :ref :commit

  def initialize(commit, repository = nil)
    @commit = commit
    @repository = repository
  end

  def fetch?
    ! resolvable?
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
r10k-1.5.1 lib/r10k/git/commit.rb
r10k-1.4.2 lib/r10k/git/commit.rb
r10k-1.4.1 lib/r10k/git/commit.rb
r10k-1.4.0 lib/r10k/git/commit.rb
r10k-1.3.5 lib/r10k/git/commit.rb
r10k-1.3.4 lib/r10k/git/commit.rb
r10k-1.2.4 lib/r10k/git/commit.rb
r10k-1.3.3 lib/r10k/git/commit.rb
r10k-1.3.2 lib/r10k/git/commit.rb
r10k-1.2.3 lib/r10k/git/commit.rb
r10k-1.3.1 lib/r10k/git/commit.rb
r10k-1.2.2 lib/r10k/git/commit.rb
r10k-1.3.0 lib/r10k/git/commit.rb
r10k-1.3.0rc1 lib/r10k/git/commit.rb
r10k-1.2.1 lib/r10k/git/commit.rb
r10k-1.2.0 lib/r10k/git/commit.rb
r10k-1.2.0rc2 lib/r10k/git/commit.rb
r10k-1.2.0rc1 lib/r10k/git/commit.rb