# File lib/rugged/branch.rb, line 9 def ==(other) other.instance_of?(Rugged::Branch) && other.canonical_name == self.canonical_name end
The name of the branch, without a fully-qualified reference path
E.g. 'master' instead of 'refs/heads/master'
# File lib/rugged/branch.rb, line 24 def name super.gsub(%r{^(refs/heads/|refs/remotes/)}, '') end
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