IBranchCollection Interface

Summary

Represents the set of all branches in a Git repository.
Namespace
GitVersion.Git
Interfaces
graph BT Type-.->Interface0["IEnumerable<IBranch>"] Type["IBranchCollection"] class Type type-node

Syntax

public interface IBranchCollection : IEnumerable<IBranch>

Properties

Name Value Summary
this[string] IBranch
Returns the branch with the given name, or null if it does not exist.

Methods

Name Value Summary
ExcludeBranches(IEnumerable<IBranch>) IEnumerable<IBranch>
Returns all branches except those in branchesToExclude.
UpdateTrackedBranch(IBranch, string) void
Updates the remote-tracking branch reference for branch to point to remoteTrackingReferenceName.

Extension Methods

Name Value Summary
NotNull<IBranchCollection>(string) T
Throws ArgumentNullException when value is null; otherwise returns the value.
GitHub