Ejemplo n.º 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));
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 6
0
        public void Pull()
        {
            Verify.State.IsTrue(Count != 0, "Repository contains no remotes.");

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