git_repository_open

Open a git repository.

The 'path' argument must point to either a git repository folder, or an existing work dir.

The method will automatically detect if 'path' is a normal or bare repository or fail is 'path' is neither.

extern (C) nothrow @nogc
int
git_repository_open

Parameters

out_ libgit2_d.types.git_repository**

pointer to the repo which will be opened

path const(char)*

the path to the repository

Return Value

Type: int

0 or an error code

Meta