Class Gitlab::Git::Ref
In: lib/gitlab_git/ref.rb
Parent: Object

Methods

Included Modules

EncodingHelper

Attributes

dereferenced_target  [R]  Dereferenced target Commit object to which the Ref points to
name  [R]  Branch or tag name without "refs/tags|heads" prefix
target  [R]  Target sha. Usually it is commit sha but in case when tag reference on other tag it can be tag sha

Public Class methods

Extract branch name from full ref path

Ex.

  Ref.extract_branch_name('refs/heads/master') #=> 'master'

[Validate]