Class: Rfix::Branch::Reference

Inherits:
Base
  • Object
show all
Defined in:
lib/rfix/branch/reference.rb

Instance Method Summary collapse

Methods inherited from Base

#to_s

Instance Method Details

#resolveObject



8
9
10
11
12
# File 'lib/rfix/branch/reference.rb', line 8

def resolve
  repository.lookup(repository.rev_parse(name).oid)
rescue Rugged::Error, Rugged::InvalidError, Rugged::ReferenceError
  raise Error, "Reference #{name.inspect} not found"
end