Edit

Share via


GitHttpClientBase.GetCommitsAsync Method

Definition

Overloads

GetCommitsAsync(String, Guid, GitQueryCommitsCriteria, Nullable<Int32>, Nullable<Int32>, Object, CancellationToken)

[Preview API] Retrieve git commits for a project

GetCommitsAsync(Guid, String, GitQueryCommitsCriteria, Nullable<Int32>, Nullable<Int32>, Object, CancellationToken)

[Preview API] Retrieve git commits for a project

GetCommitsAsync(String, String, GitQueryCommitsCriteria, Nullable<Int32>, Nullable<Int32>, Object, CancellationToken)

[Preview API] Retrieve git commits for a project

GetCommitsAsync(String, GitQueryCommitsCriteria, Nullable<Int32>, Nullable<Int32>, Object, CancellationToken)

[Preview API] Retrieve git commits for a project

GetCommitsAsync(Guid, GitQueryCommitsCriteria, Nullable<Int32>, Nullable<Int32>, Object, CancellationToken)

[Preview API] Retrieve git commits for a project

GetCommitsAsync(Guid, Guid, GitQueryCommitsCriteria, Nullable<Int32>, Nullable<Int32>, Object, CancellationToken)

[Preview API] Retrieve git commits for a project

GetCommitsAsync(String, Guid, GitQueryCommitsCriteria, Nullable<Int32>, Nullable<Int32>, Object, CancellationToken)

[Preview API] Retrieve git commits for a project

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommitRef>> GetCommitsAsync (string project, Guid repositoryId, Microsoft.TeamFoundation.SourceControl.WebApi.GitQueryCommitsCriteria searchCriteria, Nullable<int> skip = null, Nullable<int> top = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetCommitsAsync : string * Guid * Microsoft.TeamFoundation.SourceControl.WebApi.GitQueryCommitsCriteria * Nullable<int> * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommitRef>>
override this.GetCommitsAsync : string * Guid * Microsoft.TeamFoundation.SourceControl.WebApi.GitQueryCommitsCriteria * Nullable<int> * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommitRef>>

Parameters

project
String

Project ID or project name

repositoryId
Guid

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

searchCriteria
GitQueryCommitsCriteria
skip
Nullable<Int32>
userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetCommitsAsync(Guid, String, GitQueryCommitsCriteria, Nullable<Int32>, Nullable<Int32>, Object, CancellationToken)

[Preview API] Retrieve git commits for a project

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommitRef>> GetCommitsAsync (Guid project, string repositoryId, Microsoft.TeamFoundation.SourceControl.WebApi.GitQueryCommitsCriteria searchCriteria, Nullable<int> skip = null, Nullable<int> top = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetCommitsAsync : Guid * string * Microsoft.TeamFoundation.SourceControl.WebApi.GitQueryCommitsCriteria * Nullable<int> * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommitRef>>
override this.GetCommitsAsync : Guid * string * Microsoft.TeamFoundation.SourceControl.WebApi.GitQueryCommitsCriteria * Nullable<int> * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommitRef>>

Parameters

project
Guid

Project ID

repositoryId
String

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

searchCriteria
GitQueryCommitsCriteria
skip
Nullable<Int32>
userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetCommitsAsync(String, String, GitQueryCommitsCriteria, Nullable<Int32>, Nullable<Int32>, Object, CancellationToken)

[Preview API] Retrieve git commits for a project

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommitRef>> GetCommitsAsync (string project, string repositoryId, Microsoft.TeamFoundation.SourceControl.WebApi.GitQueryCommitsCriteria searchCriteria, Nullable<int> skip = null, Nullable<int> top = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetCommitsAsync : string * string * Microsoft.TeamFoundation.SourceControl.WebApi.GitQueryCommitsCriteria * Nullable<int> * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommitRef>>
override this.GetCommitsAsync : string * string * Microsoft.TeamFoundation.SourceControl.WebApi.GitQueryCommitsCriteria * Nullable<int> * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommitRef>>

Parameters

project
String

Project ID or project name

repositoryId
String

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

searchCriteria
GitQueryCommitsCriteria
skip
Nullable<Int32>
userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetCommitsAsync(String, GitQueryCommitsCriteria, Nullable<Int32>, Nullable<Int32>, Object, CancellationToken)

[Preview API] Retrieve git commits for a project

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommitRef>> GetCommitsAsync (string repositoryId, Microsoft.TeamFoundation.SourceControl.WebApi.GitQueryCommitsCriteria searchCriteria, Nullable<int> skip = null, Nullable<int> top = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetCommitsAsync : string * Microsoft.TeamFoundation.SourceControl.WebApi.GitQueryCommitsCriteria * Nullable<int> * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommitRef>>
override this.GetCommitsAsync : string * Microsoft.TeamFoundation.SourceControl.WebApi.GitQueryCommitsCriteria * Nullable<int> * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommitRef>>

Parameters

repositoryId
String

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

searchCriteria
GitQueryCommitsCriteria
skip
Nullable<Int32>
userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetCommitsAsync(Guid, GitQueryCommitsCriteria, Nullable<Int32>, Nullable<Int32>, Object, CancellationToken)

[Preview API] Retrieve git commits for a project

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommitRef>> GetCommitsAsync (Guid repositoryId, Microsoft.TeamFoundation.SourceControl.WebApi.GitQueryCommitsCriteria searchCriteria, Nullable<int> skip = null, Nullable<int> top = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetCommitsAsync : Guid * Microsoft.TeamFoundation.SourceControl.WebApi.GitQueryCommitsCriteria * Nullable<int> * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommitRef>>
override this.GetCommitsAsync : Guid * Microsoft.TeamFoundation.SourceControl.WebApi.GitQueryCommitsCriteria * Nullable<int> * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommitRef>>

Parameters

repositoryId
Guid

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

searchCriteria
GitQueryCommitsCriteria
skip
Nullable<Int32>
userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetCommitsAsync(Guid, Guid, GitQueryCommitsCriteria, Nullable<Int32>, Nullable<Int32>, Object, CancellationToken)

[Preview API] Retrieve git commits for a project

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommitRef>> GetCommitsAsync (Guid project, Guid repositoryId, Microsoft.TeamFoundation.SourceControl.WebApi.GitQueryCommitsCriteria searchCriteria, Nullable<int> skip = null, Nullable<int> top = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetCommitsAsync : Guid * Guid * Microsoft.TeamFoundation.SourceControl.WebApi.GitQueryCommitsCriteria * Nullable<int> * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommitRef>>
override this.GetCommitsAsync : Guid * Guid * Microsoft.TeamFoundation.SourceControl.WebApi.GitQueryCommitsCriteria * Nullable<int> * Nullable<int> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitCommitRef>>

Parameters

project
Guid

Project ID

repositoryId
Guid

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

searchCriteria
GitQueryCommitsCriteria
skip
Nullable<Int32>
userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to