Method: Git::Base#is_remote_branch?
- Defined in:
- lib/git/base.rb
permalink #is_remote_branch?(branch) ⇒ Boolean
returns +true+ if the branch exists remotely
286 287 288 289 |
# File 'lib/git/base.rb', line 286 def is_remote_branch?(branch) branch_names = self.branches.remote.map {|b| b.name} branch_names.include?(branch) end |