You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
696 B
16 lines
696 B
1 year ago
|
using System.Diagnostics.CodeAnalysis;
|
||
|
|
||
1 year ago
|
namespace Recyclarr.VersionControl;
|
||
2 years ago
|
|
||
1 year ago
|
[SuppressMessage("Design", "CA1068:CancellationToken parameters must come last", Justification =
|
||
|
"Doesn't mix well with `params` (which has to be at the end)")]
|
||
2 years ago
|
public interface IGitRepository : IDisposable
|
||
|
{
|
||
1 year ago
|
Task ForceCheckout(CancellationToken token, string branch);
|
||
|
Task Fetch(CancellationToken token, string remote = "origin");
|
||
|
Task ResetHard(CancellationToken token, string toBranchOrSha1);
|
||
|
Task SetRemote(CancellationToken token, string name, Uri newUrl);
|
||
|
Task Clone(CancellationToken token, Uri cloneUrl, string? branch = null, int depth = 0);
|
||
|
Task Status(CancellationToken token);
|
||
2 years ago
|
}
|