/// <summary> /// Gets the diff for the current repository. /// </summary> /// <param name="spec">The diff spec (e.g., de3f2..78ab1).</param> /// <param name="parameters">Parameters for the diff.</param> /// <param name="token">The cancellation token</param> /// <returns></returns> public Task <string> GetDiffAsync(string spec, DiffParameters parameters, CancellationToken token = default) { return(_sharpBucketV2.GetAsync(_baseUrl + $"diff/{spec}", parameters.ToDictionary(), token)); }
internal string GetDiff(string accountName, string slug, string spec, DiffParameters parameters) { var overrideUrl = GetRepositoryUrl(accountName, slug, "diff/" + spec); return(_sharpBucketV2.Get(overrideUrl, parameters.ToDictionary())); }
/// <summary> /// Gets the diff for the current repository. /// </summary> /// <param name="spec">The diff spec (e.g., de3f2..78ab1).</param> /// <param name="parameters">Parameters for the diff.</param> /// <returns></returns> public string GetDiff(string spec, DiffParameters parameters) { return(_sharpBucketV2.Get(_baseUrl + $"diff/{spec}", parameters.ToDictionary())); }