Edit

Share via


GitHttpClientBase.GetCommitAsync Method

Definition

Overloads

GetCommitAsync(String, Guid, Nullable<Int32>, Object, CancellationToken)

[Preview API] Retrieve a particular commit.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommit> GetCommitAsync(string commitId, Guid repositoryId, Nullable<int> changeCount = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetCommitAsync : string * Guid * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommit>
override this.GetCommitAsync : string * Guid * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommit>

Parameters

commitId
String

The id of the commit.

repositoryId
Guid

The id or friendly name of the repository. To use the friendly name, projectId must also be specified.

changeCount
Nullable<Int32>

The number of changes to include in the result.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetCommitAsync(String, String, Nullable<Int32>, Object, CancellationToken)

[Preview API] Retrieve a particular commit.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommit> GetCommitAsync(string commitId, string repositoryId, Nullable<int> changeCount = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetCommitAsync : string * string * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommit>
override this.GetCommitAsync : string * string * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommit>

Parameters

commitId
String

The id of the commit.

repositoryId
String

The id or friendly name of the repository. To use the friendly name, projectId must also be specified.

changeCount
Nullable<Int32>

The number of changes to include in the result.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetCommitAsync(Guid, String, Guid, Nullable<Int32>, Object, CancellationToken)

[Preview API] Retrieve a particular commit.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommit> GetCommitAsync(Guid project, string commitId, Guid repositoryId, Nullable<int> changeCount = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetCommitAsync : Guid * string * Guid * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommit>
override this.GetCommitAsync : Guid * string * Guid * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommit>

Parameters

project
Guid

Project ID

commitId
String

The id of the commit.

repositoryId
Guid

The id or friendly name of the repository. To use the friendly name, projectId must also be specified.

changeCount
Nullable<Int32>

The number of changes to include in the result.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetCommitAsync(Guid, String, String, Nullable<Int32>, Object, CancellationToken)

[Preview API] Retrieve a particular commit.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommit> GetCommitAsync(Guid project, string commitId, string repositoryId, Nullable<int> changeCount = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetCommitAsync : Guid * string * string * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommit>
override this.GetCommitAsync : Guid * string * string * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommit>

Parameters

project
Guid

Project ID

commitId
String

The id of the commit.

repositoryId
String

The id or friendly name of the repository. To use the friendly name, projectId must also be specified.

changeCount
Nullable<Int32>

The number of changes to include in the result.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetCommitAsync(String, String, Guid, Nullable<Int32>, Object, CancellationToken)

[Preview API] Retrieve a particular commit.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommit> GetCommitAsync(string project, string commitId, Guid repositoryId, Nullable<int> changeCount = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetCommitAsync : string * string * Guid * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommit>
override this.GetCommitAsync : string * string * Guid * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommit>

Parameters

project
String

Project ID or project name

commitId
String

The id of the commit.

repositoryId
Guid

The id or friendly name of the repository. To use the friendly name, projectId must also be specified.

changeCount
Nullable<Int32>

The number of changes to include in the result.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetCommitAsync(String, String, String, Nullable<Int32>, Object, CancellationToken)

[Preview API] Retrieve a particular commit.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommit> GetCommitAsync(string project, string commitId, string repositoryId, Nullable<int> changeCount = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetCommitAsync : string * string * string * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommit>
override this.GetCommitAsync : string * string * string * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommit>

Parameters

project
String

Project ID or project name

commitId
String

The id of the commit.

repositoryId
String

The id or friendly name of the repository. To use the friendly name, projectId must also be specified.

changeCount
Nullable<Int32>

The number of changes to include in the result.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to