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
Describe current branch.
Syntax
public static string GitDescribe(this ICakeContext context, DirectoryPath repositoryDirectoryPath, GitDescribeStrategy strategy)
Examples
var result = GitDescribe(".", GitDescribeStrategy.Tags);
Attributes
Type |
Description |
CakeMethodAliasAttribute |
|
CakeAliasCategoryAttribute |
|
Parameters
Name |
Type |
Description |
context |
ICakeContext |
The context. |
repositoryDirectoryPath |
DirectoryPath |
Path to repository. |
strategy |
GitDescribeStrategy |
Describing strategy. |
Return Value
Type |
Description |
string |
Described commit using the most recent tag reachable from it. |