class Git::Branches

Collection of all Git branches in a repository

Wraps both local and remote-tracking branches and provides filtering, enumeration, and name-based lookup.

@example Enumerate all branches

branches = repo.branches
branches.each { |b| puts b.name }

@deprecated Use {Git::Repository::Branching#branch_list} instead

{Git::Repository::Branching#branch_list} returns `Array<Git::BranchInfo>`
(immutable value objects). Filter it with `select(&:remote?)` or
`reject(&:remote?)` in place of {#remote} and {#local}, and look a
branch up by name with `branch_list(name).first` in place of {#[]}.
Constructing a `Git::Branches` emits a deprecation warning.

@api public