# File lib/git-up.rb, line 262 def on_branch?(branch_name=nil) repo.head.respond_to?(:name) and repo.head.name == branch_name end