Cake - API - GitAliases.GitFindRootFromPath(ICakeContext, DirectoryPath) Method

GitAliases.

GitFindRootFromPath(ICakeContext, DirectoryPath) Method

Summary

Finding git root path from subtree.
Assembly
Cake.Git.dll
Namespace
Cake.Git
Containing Type
GitAliases

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.