Method: MultiGit::Repository#each_branch

Defined in:
lib/multi_git/repository.rb

#each_branch(filter = :all) {|branch| ... } ⇒ Enumerable<Ref>

Yields either all, local or remote branches. If called with a regular expression it will be used to filter the branches by name.

Parameters:

  • filter (:all, :local, :remote, Regexp) (defaults to: :all)

Yields:

  • branch

Yield Parameters:

Returns:

  • (Enumerable<Ref>)

    if called without block



188
# File 'lib/multi_git/repository.rb', line 188

abstract :each_branch