Class R10K::Git::Ref
In: lib/r10k/git/ref.rb
Parent: Object

ref: A 40-byte hex representation of a SHA1 or a name that denotes a particular object. They may be stored in a file under $GIT_DIR/refs/ directory, or in the $GIT_DIR/packed-refs file.

@deprecated This has been replaced by the ShellGit provider and the

  StatefulRepository class and will be removed in 2.0.0

@see www.kernel.org/pub/software/scm/git/docs/gitglossary.html @api private

Methods

==   fetch?   inspect   new   resolvable?   sha1   to_s  

Attributes

ref  [R]  @!attribute [r] ref
  @return [String] The git reference
repository  [RW]  @!attribute [rw] repository
  @return [R10K::Git::Repository] A git repository that can be used to
    resolve the git reference to a commit.

Public Class methods

Public Instance methods

Should we try to fetch this ref?

Since we don‘t know the type of this ref, we have to assume that it might be a branch and always update accordingly.

Can we locate the commit in the related repository?

[Validate]