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
Returns whether a configuration value exists with the specifed key.
Syntax
public static bool GitConfigExists<T>(this ICakeContext context, DirectoryPath repositoryDirectoryPath, string key)
Examples
if (GetConfigurationExists<string>("user.email")
{
//..
}
Attributes
| Type |
Description |
| CakeMethodAliasAttribute |
|
| CakeAliasCategoryAttribute |
|
Type Parameters
| Name |
Description |
| T |
The expected configuration type. |
Parameters
| Name |
Type |
Description |
| context |
ICakeContext |
The context. |
| repositoryDirectoryPath |
DirectoryPath |
Repository path. |
| key |
string |
The configuration key. |
Return Value
| Type |
Description |
| bool |
Whether a configuration exists with the specified key. |