git_repository_init_ext

Create a new Git repository in the given folder with extended controls.

This will initialize a new git repository (creating the repo_path if requested by flags) and working directory as needed. It will auto-detect the case sensitivity of the file system and if the file system supports file mode bits correctly.

extern (C) nothrow @nogc
int
git_repository_init_ext

Parameters

out_ libgit2_d.types.git_repository**

Pointer to the repo which will be created or reinitialized.

repo_path const(char)*

The path to the repository.

opts .git_repository_init_options*

Pointer to git_repository_init_options struct.

Return Value

Type: int

0 or an error code on failure.

Meta