Summary
Returns the SHA hash of the current commit.
- Assembly
- Cake
.Frosting .Issues .Recipe .dll - Namespace
- Cake
.Frosting .Issues .Recipe - Containing Type
- I
Repository Info Provider
Syntax
string GetCommitId(ICakeContext context, DirectoryPath repositoryRootDirectory)
Parameters
Name | Type | Description |
---|---|---|
context | ICakeContext | The Cake context. |
repositoryRootDirectory | DirectoryPath | Root directory of the repository. |
Return Value
Type | Description |
---|---|
string | The SHA hash of the current commit |