3using System.Threading.Tasks;
41 Task<bool>
IsSha(
string committish, CancellationToken cancellationToken);
58 bool updateSubmodules,
59 bool moveCurrentReference,
61 CancellationToken cancellationToken);
78 string committerEmail,
81 bool updateSubmodules,
83 CancellationToken cancellationToken);
98 bool deploymentPipeline,
99 CancellationToken cancellationToken);
115 bool updateSubmodules,
116 bool deploymentPipeline,
117 CancellationToken cancellationToken);
139 string committerName,
140 string committerEmail,
141 bool deploymentPipeline,
142 CancellationToken cancellationToken);
160 string committerName,
161 string committerEmail,
162 bool synchronizeTrackedBranch,
163 bool deploymentPipeline,
164 CancellationToken cancellationToken);
172 ValueTask
CopyTo(
string path, CancellationToken cancellationToken);
196 Task<DateTimeOffset>
TimestampCommit(
string sha, CancellationToken cancellationToken);
Parameters for creating a TestMerge.
Progress reporter for a Job.
Represents an on-disk git repository.
Task< DateTimeOffset > TimestampCommit(string sha, CancellationToken cancellationToken)
Gets the DateTimeOffset a given sha was created on.
ValueTask ResetToOrigin(JobProgressReporter progressReporter, string? username, string? password, bool updateSubmodules, bool deploymentPipeline, CancellationToken cancellationToken)
Requires the current HEAD to be a tracked reference. Hard resets the reference to what it tracks on t...
string Reference
The current reference the IRepository HEAD is using. This can be a branch or tag.
Task< string > GetOriginSha(CancellationToken cancellationToken)
Get the tracked reference's current SHA.
bool Tracking
If Reference tracks an upstream branch.
ValueTask CopyTo(string path, CancellationToken cancellationToken)
Copies the current working directory to a given path .
ValueTask< bool > Synchronize(JobProgressReporter progressReporter, string? username, string? password, string committerName, string committerEmail, bool synchronizeTrackedBranch, bool deploymentPipeline, CancellationToken cancellationToken)
Runs the synchronize event script and attempts to push any changes made to the IRepository if on a tr...
ValueTask< bool?> MergeOrigin(JobProgressReporter progressReporter, string committerName, string committerEmail, bool deploymentPipeline, CancellationToken cancellationToken)
Requires the current HEAD to be a tracked reference. Merges the reference to what it tracks on the or...
string Head
The SHA of the IRepository HEAD.
Task ResetToSha(string sha, JobProgressReporter progressReporter, CancellationToken cancellationToken)
Requires the current HEAD to be a reference. Hard resets the reference to the given sha.
Task< bool > CommittishIsParent(string committish, CancellationToken cancellationToken)
Check if a given committish is a parent of the current Head.
ValueTask CheckoutObject(string committish, string? username, string? password, bool updateSubmodules, bool moveCurrentReference, JobProgressReporter progressReporter, CancellationToken cancellationToken)
Checks out a given committish .
Task< bool > IsSha(string committish, CancellationToken cancellationToken)
Checks if a given committish is a sha.
ValueTask FetchOrigin(JobProgressReporter progressReporter, string? username, string? password, bool deploymentPipeline, CancellationToken cancellationToken)
Fetch commits from the origin repository.
Uri Origin
The current origin remote the IRepository is using.
ValueTask< TestMergeResult > AddTestMerge(TestMergeParameters testMergeParameters, string committerName, string committerEmail, string? username, string? password, bool updateSubmodules, JobProgressReporter progressReporter, CancellationToken cancellationToken)
Attempt to merge the revision specified by a given set of testMergeParameters into HEAD.