This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see
Cake.Git.
Summary
Gets the specified configuration value.
Syntax
public static T GitConfigGet<T>(this ICakeContext context, DirectoryPath repositoryDirectoryPath, string key)
Examples
var configValue = GitConfigGet<string>("user.email");
Attributes
Type |
Description |
CakeMethodAliasAttribute |
|
CakeAliasCategoryAttribute |
|
Type Parameters
Name |
Description |
T |
The expected type of configuration. |
Parameters
Name |
Type |
Description |
context |
ICakeContext |
The context. |
repositoryDirectoryPath |
DirectoryPath |
Repository path. |
key |
string |
The configuration key. |
Return Value
Type |
Description |
T |
The value of the specified configuration key. |