Class: Gollum::Git::Ref

Inherits:
Object
  • Object
show all
Defined in:
lib/rugged_adapter/git_layer_rugged.rb

Instance Method Summary collapse

Constructor Details

#initialize(ref) ⇒ Ref

Returns a new instance of Ref.



550
551
552
# File 'lib/rugged_adapter/git_layer_rugged.rb', line 550

def initialize(ref)
  @ref = ref
end

Instance Method Details

#commitObject



558
559
560
# File 'lib/rugged_adapter/git_layer_rugged.rb', line 558

def commit
  Gollum::Git::Commit.new(@ref.target)
end

#nameObject



554
555
556
# File 'lib/rugged_adapter/git_layer_rugged.rb', line 554

def name
  @ref.name
end