public Task PullAsync(IProgress <OperationProgress> progress, CancellationToken cancellationToken) { Verify.Argument.IsNotNull(progress, "progress"); Verify.State.IsTrue(Count != 0, "Repository contains no remotes."); return(RemotesUtility.FetchOrPullAsync(Repository, null, true, progress, cancellationToken)); }
public Task PushAsync(ICollection <Branch> branches, bool forceOverwrite, bool thinPack, bool sendTags, IProgress <OperationProgress> progress, CancellationToken cancellationToken) { Verify.State.IsNotDeleted(this); return(RemotesUtility.PushAsync(Repository, this, branches, forceOverwrite, thinPack, sendTags, progress, cancellationToken)); }
/// <summary>Download new objects from remote repository and merge tracking branches.</summary> public Task PullAsync(IProgress <OperationProgress> progress, CancellationToken cancellationToken) { Verify.State.IsNotDeleted(this); return(RemotesUtility.FetchOrPullAsync(Repository, this, true, progress, cancellationToken)); }
/// <summary>Download new objects from remote repository and merge tracking branches.</summary> public void Pull() { Verify.State.IsNotDeleted(this); RemotesUtility.FetchOrPull(Repository, this, true); }
/// <summary>Send local objects to remote repository.</summary> public Task PushToAsync(string url, ICollection <Branch> branches, bool forceOverwrite, bool thinPack, bool sendTags, IProgress <OperationProgress> progress, CancellationToken cancellationToken) { Verify.Argument.IsNeitherNullNorWhitespace(url, "url"); return(RemotesUtility.PushAsync(Repository, url, branches, forceOverwrite, thinPack, sendTags, progress, cancellationToken)); }
public void Pull() { Verify.State.IsTrue(Count != 0, "Repository contains no remotes."); RemotesUtility.FetchOrPull(Repository, null, true); }