libgit2

git_repository_workdir

Version:

Get the path of the working directory for this repository

If the repository is bare, this function will always return NULL.

Signature

const char *git_repository_workdir(const git_repository *repo);

Parameters

In
repo

A repository object

Returns

const char *

the path to the working dir, if it exists

Versions