libgit2

git_repository_is_bare

Version:

Check if a repository is bare

Signature

int git_repository_is_bare(git_repository *repo);

Parameters

In
repo

Repo to test

Returns

int

1 if the repository is bare, 0 otherwise.

Versions