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
Finding git root path from subtree.
Syntax
public static DirectoryPath GitFindRootFromPath(this ICakeContext context, DirectoryPath path)
Examples
var result = GitFindRootFromPath("c:/temp/cake");
Attributes
| Type |
Description |
| CakeMethodAliasAttribute |
|
| CakeAliasCategoryAttribute |
|
Parameters
| Name |
Type |
Description |
| context |
ICakeContext |
The context. |
| path |
DirectoryPath |
Path to probe the repository. |
Return Value
| Type |
Description |
| DirectoryPath |
The path to the repository root. |