Edit

Share via


GitHttpClientBase.GetCommitDiffsAsync Method

Definition

Overloads

GetCommitDiffsAsync(Guid, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, GitBaseVersionDescriptor, GitTargetVersionDescriptor, Object, CancellationToken)

[Preview API] Find the closest common commit (the merge base) between base and target commits, and get the diff between either the base and target commits or common and target commits.

GetCommitDiffsAsync(String, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, GitBaseVersionDescriptor, GitTargetVersionDescriptor, Object, CancellationToken)

[Preview API] Find the closest common commit (the merge base) between base and target commits, and get the diff between either the base and target commits or common and target commits.

GetCommitDiffsAsync(Guid, Guid, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, GitBaseVersionDescriptor, GitTargetVersionDescriptor, Object, CancellationToken)

[Preview API] Find the closest common commit (the merge base) between base and target commits, and get the diff between either the base and target commits or common and target commits.

GetCommitDiffsAsync(Guid, String, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, GitBaseVersionDescriptor, GitTargetVersionDescriptor, Object, CancellationToken)

[Preview API] Find the closest common commit (the merge base) between base and target commits, and get the diff between either the base and target commits or common and target commits.

GetCommitDiffsAsync(String, Guid, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, GitBaseVersionDescriptor, GitTargetVersionDescriptor, Object, CancellationToken)

[Preview API] Find the closest common commit (the merge base) between base and target commits, and get the diff between either the base and target commits or common and target commits.

GetCommitDiffsAsync(String, String, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, GitBaseVersionDescriptor, GitTargetVersionDescriptor, Object, CancellationToken)

[Preview API] Find the closest common commit (the merge base) between base and target commits, and get the diff between either the base and target commits or common and target commits.

GetCommitDiffsAsync(Guid, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, GitBaseVersionDescriptor, GitTargetVersionDescriptor, Object, CancellationToken)

[Preview API] Find the closest common commit (the merge base) between base and target commits, and get the diff between either the base and target commits or common and target commits.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommitDiffs> GetCommitDiffsAsync(Guid repositoryId, Nullable<bool> diffCommonCommit = null, Nullable<int> top = null, Nullable<int> skip = null, Microsoft.TeamFoundation.SourceControl.WebApi.GitBaseVersionDescriptor baseVersionDescriptor = null, Microsoft.TeamFoundation.SourceControl.WebApi.GitTargetVersionDescriptor targetVersionDescriptor = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetCommitDiffsAsync : Guid * Nullable<bool> * Nullable<int> * Nullable<int> * Microsoft.TeamFoundation.SourceControl.WebApi.GitBaseVersionDescriptor * Microsoft.TeamFoundation.SourceControl.WebApi.GitTargetVersionDescriptor * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommitDiffs>
override this.GetCommitDiffsAsync : Guid * Nullable<bool> * Nullable<int> * Nullable<int> * Microsoft.TeamFoundation.SourceControl.WebApi.GitBaseVersionDescriptor * Microsoft.TeamFoundation.SourceControl.WebApi.GitTargetVersionDescriptor * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommitDiffs>

Parameters

repositoryId
Guid

The name or ID of the repository.

diffCommonCommit
Nullable<Boolean>

If true, diff between common and target commits. If false, diff between base and target commits.

top
Nullable<Int32>

Maximum number of changes to return. Defaults to 100.

skip
Nullable<Int32>

Number of changes to skip

baseVersionDescriptor
GitBaseVersionDescriptor

Descriptor for base commit.

targetVersionDescriptor
GitTargetVersionDescriptor

Descriptor for target commit.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetCommitDiffsAsync(String, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, GitBaseVersionDescriptor, GitTargetVersionDescriptor, Object, CancellationToken)

[Preview API] Find the closest common commit (the merge base) between base and target commits, and get the diff between either the base and target commits or common and target commits.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommitDiffs> GetCommitDiffsAsync(string repositoryId, Nullable<bool> diffCommonCommit = null, Nullable<int> top = null, Nullable<int> skip = null, Microsoft.TeamFoundation.SourceControl.WebApi.GitBaseVersionDescriptor baseVersionDescriptor = null, Microsoft.TeamFoundation.SourceControl.WebApi.GitTargetVersionDescriptor targetVersionDescriptor = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetCommitDiffsAsync : string * Nullable<bool> * Nullable<int> * Nullable<int> * Microsoft.TeamFoundation.SourceControl.WebApi.GitBaseVersionDescriptor * Microsoft.TeamFoundation.SourceControl.WebApi.GitTargetVersionDescriptor * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommitDiffs>
override this.GetCommitDiffsAsync : string * Nullable<bool> * Nullable<int> * Nullable<int> * Microsoft.TeamFoundation.SourceControl.WebApi.GitBaseVersionDescriptor * Microsoft.TeamFoundation.SourceControl.WebApi.GitTargetVersionDescriptor * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommitDiffs>

Parameters

repositoryId
String

The name or ID of the repository.

diffCommonCommit
Nullable<Boolean>

If true, diff between common and target commits. If false, diff between base and target commits.

top
Nullable<Int32>

Maximum number of changes to return. Defaults to 100.

skip
Nullable<Int32>

Number of changes to skip

baseVersionDescriptor
GitBaseVersionDescriptor

Descriptor for base commit.

targetVersionDescriptor
GitTargetVersionDescriptor

Descriptor for target commit.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetCommitDiffsAsync(Guid, Guid, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, GitBaseVersionDescriptor, GitTargetVersionDescriptor, Object, CancellationToken)

[Preview API] Find the closest common commit (the merge base) between base and target commits, and get the diff between either the base and target commits or common and target commits.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommitDiffs> GetCommitDiffsAsync(Guid project, Guid repositoryId, Nullable<bool> diffCommonCommit = null, Nullable<int> top = null, Nullable<int> skip = null, Microsoft.TeamFoundation.SourceControl.WebApi.GitBaseVersionDescriptor baseVersionDescriptor = null, Microsoft.TeamFoundation.SourceControl.WebApi.GitTargetVersionDescriptor targetVersionDescriptor = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetCommitDiffsAsync : Guid * Guid * Nullable<bool> * Nullable<int> * Nullable<int> * Microsoft.TeamFoundation.SourceControl.WebApi.GitBaseVersionDescriptor * Microsoft.TeamFoundation.SourceControl.WebApi.GitTargetVersionDescriptor * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommitDiffs>
override this.GetCommitDiffsAsync : Guid * Guid * Nullable<bool> * Nullable<int> * Nullable<int> * Microsoft.TeamFoundation.SourceControl.WebApi.GitBaseVersionDescriptor * Microsoft.TeamFoundation.SourceControl.WebApi.GitTargetVersionDescriptor * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommitDiffs>

Parameters

project
Guid

Project ID

repositoryId
Guid

The name or ID of the repository.

diffCommonCommit
Nullable<Boolean>

If true, diff between common and target commits. If false, diff between base and target commits.

top
Nullable<Int32>

Maximum number of changes to return. Defaults to 100.

skip
Nullable<Int32>

Number of changes to skip

baseVersionDescriptor
GitBaseVersionDescriptor

Descriptor for base commit.

targetVersionDescriptor
GitTargetVersionDescriptor

Descriptor for target commit.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetCommitDiffsAsync(Guid, String, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, GitBaseVersionDescriptor, GitTargetVersionDescriptor, Object, CancellationToken)

[Preview API] Find the closest common commit (the merge base) between base and target commits, and get the diff between either the base and target commits or common and target commits.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommitDiffs> GetCommitDiffsAsync(Guid project, string repositoryId, Nullable<bool> diffCommonCommit = null, Nullable<int> top = null, Nullable<int> skip = null, Microsoft.TeamFoundation.SourceControl.WebApi.GitBaseVersionDescriptor baseVersionDescriptor = null, Microsoft.TeamFoundation.SourceControl.WebApi.GitTargetVersionDescriptor targetVersionDescriptor = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetCommitDiffsAsync : Guid * string * Nullable<bool> * Nullable<int> * Nullable<int> * Microsoft.TeamFoundation.SourceControl.WebApi.GitBaseVersionDescriptor * Microsoft.TeamFoundation.SourceControl.WebApi.GitTargetVersionDescriptor * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommitDiffs>
override this.GetCommitDiffsAsync : Guid * string * Nullable<bool> * Nullable<int> * Nullable<int> * Microsoft.TeamFoundation.SourceControl.WebApi.GitBaseVersionDescriptor * Microsoft.TeamFoundation.SourceControl.WebApi.GitTargetVersionDescriptor * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommitDiffs>

Parameters

project
Guid

Project ID

repositoryId
String

The name or ID of the repository.

diffCommonCommit
Nullable<Boolean>

If true, diff between common and target commits. If false, diff between base and target commits.

top
Nullable<Int32>

Maximum number of changes to return. Defaults to 100.

skip
Nullable<Int32>

Number of changes to skip

baseVersionDescriptor
GitBaseVersionDescriptor

Descriptor for base commit.

targetVersionDescriptor
GitTargetVersionDescriptor

Descriptor for target commit.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetCommitDiffsAsync(String, Guid, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, GitBaseVersionDescriptor, GitTargetVersionDescriptor, Object, CancellationToken)

[Preview API] Find the closest common commit (the merge base) between base and target commits, and get the diff between either the base and target commits or common and target commits.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommitDiffs> GetCommitDiffsAsync(string project, Guid repositoryId, Nullable<bool> diffCommonCommit = null, Nullable<int> top = null, Nullable<int> skip = null, Microsoft.TeamFoundation.SourceControl.WebApi.GitBaseVersionDescriptor baseVersionDescriptor = null, Microsoft.TeamFoundation.SourceControl.WebApi.GitTargetVersionDescriptor targetVersionDescriptor = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetCommitDiffsAsync : string * Guid * Nullable<bool> * Nullable<int> * Nullable<int> * Microsoft.TeamFoundation.SourceControl.WebApi.GitBaseVersionDescriptor * Microsoft.TeamFoundation.SourceControl.WebApi.GitTargetVersionDescriptor * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommitDiffs>
override this.GetCommitDiffsAsync : string * Guid * Nullable<bool> * Nullable<int> * Nullable<int> * Microsoft.TeamFoundation.SourceControl.WebApi.GitBaseVersionDescriptor * Microsoft.TeamFoundation.SourceControl.WebApi.GitTargetVersionDescriptor * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommitDiffs>

Parameters

project
String

Project ID or project name

repositoryId
Guid

The name or ID of the repository.

diffCommonCommit
Nullable<Boolean>

If true, diff between common and target commits. If false, diff between base and target commits.

top
Nullable<Int32>

Maximum number of changes to return. Defaults to 100.

skip
Nullable<Int32>

Number of changes to skip

baseVersionDescriptor
GitBaseVersionDescriptor

Descriptor for base commit.

targetVersionDescriptor
GitTargetVersionDescriptor

Descriptor for target commit.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetCommitDiffsAsync(String, String, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, GitBaseVersionDescriptor, GitTargetVersionDescriptor, Object, CancellationToken)

[Preview API] Find the closest common commit (the merge base) between base and target commits, and get the diff between either the base and target commits or common and target commits.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommitDiffs> GetCommitDiffsAsync(string project, string repositoryId, Nullable<bool> diffCommonCommit = null, Nullable<int> top = null, Nullable<int> skip = null, Microsoft.TeamFoundation.SourceControl.WebApi.GitBaseVersionDescriptor baseVersionDescriptor = null, Microsoft.TeamFoundation.SourceControl.WebApi.GitTargetVersionDescriptor targetVersionDescriptor = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetCommitDiffsAsync : string * string * Nullable<bool> * Nullable<int> * Nullable<int> * Microsoft.TeamFoundation.SourceControl.WebApi.GitBaseVersionDescriptor * Microsoft.TeamFoundation.SourceControl.WebApi.GitTargetVersionDescriptor * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommitDiffs>
override this.GetCommitDiffsAsync : string * string * Nullable<bool> * Nullable<int> * Nullable<int> * Microsoft.TeamFoundation.SourceControl.WebApi.GitBaseVersionDescriptor * Microsoft.TeamFoundation.SourceControl.WebApi.GitTargetVersionDescriptor * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommitDiffs>

Parameters

project
String

Project ID or project name

repositoryId
String

The name or ID of the repository.

diffCommonCommit
Nullable<Boolean>

If true, diff between common and target commits. If false, diff between base and target commits.

top
Nullable<Int32>

Maximum number of changes to return. Defaults to 100.

skip
Nullable<Int32>

Number of changes to skip

baseVersionDescriptor
GitBaseVersionDescriptor

Descriptor for base commit.

targetVersionDescriptor
GitTargetVersionDescriptor

Descriptor for target commit.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to