IMutatingGitRepository Interface

Summary

Extends IGitRepository with operations that modify the repository state.
Assembly
GitVersion.Core.dll
Namespace
GitVersion.Git
Interfaces
graph BT Type-.->Interface0["IGitRepository"] click Interface0 "/api/GitVersion.Git/IGitRepository" Type-.->Interface1["IDisposable"] Type["IMutatingGitRepository"] class Type type-node

Syntax

public interface IMutatingGitRepository : IGitRepository, IDisposable

Attributes

Type Description
NullableContextAttribute

Methods

Name Value Summary
Checkout(string) void
Checks out the specified commit or branch.
Clone(string, string, AuthenticationInfo) void
Clones the repository at sourceUrl into workdirPath using the supplied credentials.
CreateBranchForPullRequestBranch(AuthenticationInfo) void
Creates a local branch that tracks the pull-request ref identified by the current build environment.
Fetch(string, IEnumerable<string>, AuthenticationInfo, string) void
Fetches the given refSpecs from remote using the supplied credentials.

Extension Methods

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