Summary
Walks up the directory tree from path looking for a
.git directory or file, returning the git directory and working-tree paths when found.- Assembly
- GitVersion
.Core .dll - Namespace
- GitVersion
.Extensions - Containing Type
- FileSystemExtensions
Syntax
public static Nullable<ValueTuple<string, string>> FindGitDir(this IFileSystem fileSystem, string path)
Parameters
| Name | Type | Description |
|---|---|---|
| fileSystem | IFileSystem | |
| path | string |
Return Value
| Type | Description |
|---|---|
| Nullable |