Summary
Provides paths describing the layout of the Git repository on disk.
- Assembly
- GitVersion
.Core .dll - Namespace
- GitVersion
.Git - Implementing Types
graph BT
Type["IGitRepositoryInfo"]
class Type type-node
Implementing0["GitRepositoryInfo"]-.->Type
click Implementing0 "/api/GitVersion.Git/GitRepositoryInfo"
Syntax
public interface IGitRepositoryInfo
Attributes
| Type | Description |
|---|---|
| Nullable |
Properties
| Name | Value | Summary |
|---|---|---|
| DotGitDirectory | string |
Gets the path to the
.git directory, or null when not yet discovered. |
| Dynamic |
string |
Gets the path to the dynamically created Git repository used for shallow-clone scenarios, or
null when not applicable. |
| GitRootPath | string |
Gets the root path of the Git working tree, or
null when not yet discovered. |
| ProjectRootDirectory | string |
Gets the path to the project root directory (the directory that contains the solution or project file), or
null when not determined. |
Extension Methods
| Name | Value | Summary |
|---|---|---|
| NotNull |
T |
Throws
System.ArgumentNullException when value is null; otherwise returns the value.From CommonExtensions
|