git_repository_init

Creates a new Git repository in the given folder.

TODO: - Reinit the repository

extern (C) nothrow @nogc
int
git_repository_init

Parameters

out_ libgit2_d.types.git_repository**

pointer to the repo which will be created or reinitialized

path const(char)*

the path to the repository

is_bare uint

if true, a Git repository without a working directory is created at the pointed path. If false, provided path will be considered as the working directory into which the .git directory will be created.

Return Value

Type: int

0 or an error code

Meta