Method: Git::Base#is_local_branch?
- Defined in:
- lib/git/base.rb
#is_local_branch?(branch) ⇒ Boolean
returns true if the branch exists locally
163 164 165 166 |
# File 'lib/git/base.rb', line 163 def is_local_branch?(branch) branch_names = self.branches.local.map {|b| b.name} branch_names.include?(branch) end |