IRepositoryInfoProvider.

GetCommitId(ICakeContext, DirectoryPath) Method

Summary

Returns the SHA hash of the current commit.

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
GitHub