libgit2

git_repository_path

Version:

Get the path of this repository

This is the path of the .git folder for normal repositories, or of the repository itself for bare repositories.

Signature

const char *git_repository_path(const git_repository *repo);

Parameters

In
repo

A repository object

Returns

const char *

the path to the repository

Versions