libgit2

git_repository_path

Version:

Get the normalized path to the git repository.

Signature

const char *git_repository_path(git_repository *repo);

Parameters

In
repo

a repository object

Returns

const char *

absolute path to the git directory

Versions