コード例 #1
0
        /// <summary>
        /// Enumerate the commit information associated with a repository in a specified branch.
        /// The newest commit is first.
        /// </summary>
        /// <param name="branchOrTag">The branch or tag to get, for example, master or default.</param>
        /// <param name="commitsParameters">Optional parameters that allow to filter the commits to return.</param>
        public IAsyncEnumerable <Commit> EnumerateCommitsAsync(string branchOrTag, EnumerateCommitsParameters commitsParameters, CancellationToken token = default)
        {
            var overrideUrl = _baseUrl + "commits/";

            if (!string.IsNullOrEmpty(branchOrTag))
            {
                overrideUrl += branchOrTag;
            }

            return(_sharpBucketV2.EnumeratePaginatedValuesAsync <Commit>(overrideUrl, commitsParameters.ToDictionary(), commitsParameters.PageLen, token));
        }
コード例 #2
0
        /// <summary>
        /// Enumerate the commit information associated with a repository in a specified branch.
        /// The newest commit is first.
        /// </summary>
        /// <param name="branchOrTag">The branch or tag to get, for example, master or default.</param>
        /// <param name="commitsParameters">Optional parameters that allow to filter the commits to return.</param>
        public IEnumerable <Commit> EnumerateCommits(string branchOrTag, EnumerateCommitsParameters commitsParameters)
        {
            var overrideUrl = _baseUrl + "commits/";

            if (!string.IsNullOrEmpty(branchOrTag))
            {
                overrideUrl += branchOrTag;
            }

            return(_sharpBucketV2.EnumeratePaginatedValues <Commit>(
                       overrideUrl,
                       commitsParameters.ToDictionary(),
                       commitsParameters.PageLen));
        }
コード例 #3
0
 /// <summary>
 /// Enumerate the commit information associated with a repository.
 /// By default, this call returns all the commits across all branches, bookmarks, and tags.
 /// The newest commit is first.
 /// </summary>
 /// <param name="commitsParameters">Parameters that allow to filter the commits to return.</param>
 public IAsyncEnumerable <Commit> EnumerateCommitsAsync(EnumerateCommitsParameters commitsParameters, CancellationToken token = default)
 => EnumerateCommitsAsync(null, commitsParameters, token);
コード例 #4
0
 /// <summary>
 /// Enumerate the commit information associated with a repository.
 /// By default, this call returns all the commits across all branches, bookmarks, and tags.
 /// The newest commit is first.
 /// </summary>
 /// <param name="commitsParameters">Parameters that allow to filter the commits to return.</param>
 public IEnumerable <Commit> EnumerateCommits(EnumerateCommitsParameters commitsParameters)
 => EnumerateCommits(null, commitsParameters);