Method: Git::Base#is_branch?
- Defined in:
- lib/git/base.rb
#is_branch?(branch) ⇒ Boolean
returns true if the branch exists
175 176 177 178 |
# File 'lib/git/base.rb', line 175 def is_branch?(branch) branch_names = self.branches.map {|b| b.name} branch_names.include?(branch) end |