3using System.Threading.Tasks;
41 Task<bool>
IsSha(
string committish, CancellationToken cancellationToken);
57 bool updateSubmodules,
59 CancellationToken cancellationToken);
76 string committerEmail,
79 bool updateSubmodules,
81 CancellationToken cancellationToken);
96 bool deploymentPipeline,
97 CancellationToken cancellationToken);
113 bool updateSubmodules,
114 bool deploymentPipeline,
115 CancellationToken cancellationToken);
137 string committerName,
138 string committerEmail,
139 bool deploymentPipeline,
140 CancellationToken cancellationToken);
158 string committerName,
159 string committerEmail,
160 bool synchronizeTrackedBranch,
161 bool deploymentPipeline,
162 CancellationToken cancellationToken);
170 Task
CopyTo(
string path, CancellationToken cancellationToken);
179 Task<bool>
ShaIsParent(
string sha, CancellationToken cancellationToken);
194 Task<DateTimeOffset>
TimestampCommit(
string sha, CancellationToken cancellationToken);
Parameters for creating a TestMerge.
Progress reporter for a Job.
Represents an on-disk git repository.
Task FetchOrigin(JobProgressReporter progressReporter, string username, string password, bool deploymentPipeline, CancellationToken cancellationToken)
Fetch commits from the origin repository.
Task CheckoutObject(string committish, string username, string password, bool updateSubmodules, JobProgressReporter progressReporter, CancellationToken cancellationToken)
Checks out a given committish .
Task 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...
Task< DateTimeOffset > TimestampCommit(string sha, CancellationToken cancellationToken)
Gets the DateTimeOffset a given sha was created on.
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.
Task< bool > ShaIsParent(string sha, CancellationToken cancellationToken)
Check if a given sha is a parent of the current Head.
Task< 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< 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.
Task< bool > IsSha(string committish, CancellationToken cancellationToken)
Checks if a given committish is a sha.
Task CopyTo(string path, CancellationToken cancellationToken)
Copies the current working directory to a given path .
Uri Origin
The current origin remote the IRepository is using.
Task< bool > Sychronize(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...