FindGitDir(IFileSystem, string) Method

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.

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<string, string>