git_repository_commondir

Get the path of the shared common directory for this repository

If the repository is bare is not a worktree, the git directory path is returned.

extern (C) nothrow @nogc
const(char)*
git_repository_commondir

Parameters

repo const(libgit2_d.types.git_repository)*

A repository object

Return Value

Type: const(char)*

the path to the common dir

Meta