GitHttpClientBase.GetCommitAsync 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
| GetCommitAsync(String, Guid, Nullable<Int32>, Object, CancellationToken) |
[Preview API] Retrieve a particular commit. |
| GetCommitAsync(String, String, Nullable<Int32>, Object, CancellationToken) |
[Preview API] Retrieve a particular commit. |
| GetCommitAsync(Guid, String, Guid, Nullable<Int32>, Object, CancellationToken) |
[Preview API] Retrieve a particular commit. |
| GetCommitAsync(Guid, String, String, Nullable<Int32>, Object, CancellationToken) |
[Preview API] Retrieve a particular commit. |
| GetCommitAsync(String, String, Guid, Nullable<Int32>, Object, CancellationToken) |
[Preview API] Retrieve a particular commit. |
| GetCommitAsync(String, String, String, Nullable<Int32>, Object, CancellationToken) |
[Preview API] Retrieve a particular commit. |
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.
- 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.
- 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.
- 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.
- 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.
- 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.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.