IGitPreparer Interface

Summary

Prepares the Git repository so that GitVersion can calculate the version (fetches, clones, and normalises refs as needed).
Namespace
GitVersion
graph BT Type["IGitPreparer"] class Type type-node

Syntax

public interface IGitPreparer

Methods

Name Value Summary
EnsureLocalBranchExistsForCurrentBranch(IRemote, string) 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<IGitPreparer>(string) T
Throws ArgumentNullException when value is null; otherwise returns the value.
GitHub