Summary
Represents the set of all branches in a Git repository.
- Assembly
- GitVersion
.Core .dll - Namespace
- GitVersion
.Git - Interfaces
-
- IEnumerable
<IBranch> - IEnumerable
- IEnumerable
graph BT
Type-.->Interface0["IEnumerable<IBranch>"]
Type-.->Interface1["IEnumerable"]
Type["IBranchCollection"]
class Type type-node
Syntax
public interface IBranchCollection : IEnumerable<IBranch>, IEnumerable
Attributes
| Type | Description |
|---|---|
| Nullable |
|
| Default |
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 |
Returns all branches except those in branchesToExclude.
|
| UpdateTrackedBranch |
void |
Updates the remote-tracking branch reference for branch to point to remoteTrackingReferenceName.
|
Extension Methods
| Name | Value | Summary |
|---|---|---|
| NotNull |
T |
Throws
System.ArgumentNullException when value is null; otherwise returns the value.From CommonExtensions
|