コード例 #1
0
ファイル: RemotesCollection.cs プロジェクト: oqewok/gitter
        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
        /// <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));
        }