class Rugged::Branch

Public Instance Methods

==(other) click to toggle source
# File lib/rugged/branch.rb, line 9
def ==(other)
  other.instance_of?(Rugged::Branch) &&
    other.canonical_name == self.canonical_name
end
name() click to toggle source

The name of the branch, without a fully-qualified reference path

E.g. 'master' instead of 'refs/heads/master'

Calls superclass method
# File lib/rugged/branch.rb, line 24
def name
  super.gsub(%r{^(refs/heads/|refs/remotes/)}, '')
end
tip() click to toggle source

The object pointed at by the tip of this branch

# File lib/rugged/branch.rb, line 5
def tip
  @owner.lookup(self.resolve.target)
end