git_repository_commondir

Get the path of the shared common directory for this repository.

If the repository is bare, it is the root directory for the repository. If the repository is a worktree, it is the parent repo's gitdir. Otherwise, it is the gitdir.

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