Summary
Prepares the Git repository so that GitVersion can calculate the version (fetches, clones, and normalises refs as needed).
- Assembly
- GitVersion
.Core .dll - Namespace
- GitVersion
graph BT
Type["IGitPreparer"]
class Type type-node
Syntax
public interface IGitPreparer
Attributes
| Type | Description |
|---|---|
| Nullable |
Methods
| Name | Value | Summary |
|---|---|---|
| Ensure |
void |
Ensures a local branch exists that tracks the supplied currentBranch on the given remote.
|
| Prepare |
void |
Performs all preparation steps required before version calculation (fetch, clone, normalise).
|
Extension Methods
| Name | Value | Summary |
|---|---|---|
| NotNull |
T |
Throws
System.ArgumentNullException when value is null; otherwise returns the value.From CommonExtensions
|