Summary
Represents the set of all references in a Git repository.
- Assembly
- GitVersion
.Core .dll - Namespace
- GitVersion
.Git - Interfaces
-
- IEnumerable
<IReference> - IEnumerable
- IEnumerable
graph BT
Type-.->Interface0["IEnumerable<IReference>"]
Type-.->Interface1["IEnumerable"]
Type["IReferenceCollection"]
class Type type-node
Syntax
public interface IReferenceCollection : IEnumerable<IReference>, IEnumerable
Attributes
| Type | Description |
|---|---|
| Nullable |
|
| Default |
Properties
| Name | Value | Summary |
|---|---|---|
| Head | IReference |
Gets the current HEAD reference, or
null when HEAD is unborn. |
| this[ReferenceName] | IReference |
Returns the reference with the given referenceName, or
null if it does not exist. |
| this[string] | IReference |
Returns the reference with the given canonical name, or
null if it does not exist. |
Methods
| Name | Value | Summary |
|---|---|---|
| Add |
void |
Creates a new reference named name pointing to canonicalRefNameOrObject.
|
| FromGlob |
IEnumerable |
Returns all references whose canonical names start with prefix.
|
| UpdateTarget |
void |
Updates the target of the direct reference directRef to point to targetId.
|
Extension Methods
| Name | Value | Summary |
|---|---|---|
| NotNull |
T |
Throws
System.ArgumentNullException when value is null; otherwise returns the value.From CommonExtensions
|