Skip to content

Commit

Permalink
Repository#ref and Repository#refs now use the ReferenceCollection.
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurschreiber committed Feb 24, 2014
1 parent e9214c2 commit 16f322c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rugged/repository.rb
Expand Up @@ -124,11 +124,11 @@ def rev_parse_oid(spec)
#
# Returns a Rugged::Reference.
def ref(ref_name)
Rugged::Reference.lookup(self, ref_name)
references[ref_name]
end

def refs(glob = nil)
Rugged::Reference.each(self, glob)
references.each(glob)
end

def references
Expand Down

0 comments on commit 16f322c

Please sign in to comment.