class Git::Base

def is_branch?(branch)

returns +true+ if the branch exists
def is_branch?(branch)
  branch_names = self.branches.map {|b| b.name}
  branch_names.include?(branch)
end