예제 #1
0
        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));
        }
예제 #2
0
        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));
        }
예제 #3
0
        /// <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));
        }
예제 #4
0
        /// <summary>Download new objects from remote repository and merge tracking branches.</summary>
        public void Pull()
        {
            Verify.State.IsNotDeleted(this);

            RemotesUtility.FetchOrPull(Repository, this, true);
        }
예제 #5
0
        /// <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));
        }
예제 #6
0
        public void Pull()
        {
            Verify.State.IsTrue(Count != 0, "Repository contains no remotes.");

            RemotesUtility.FetchOrPull(Repository, null, true);
        }