GitHttpClientBase.GetCommitsAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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
- 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
- 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
- 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
- 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
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for