git_repository_new

Create a new repository with neither backends nor config object

Note that this is only useful if you wish to associate the repository with a non-filesystem-backed object database and config store.

Caveats: since this repository has no physical location, some systems can fail to function properly: locations under $GIT_DIR, $GIT_COMMON_DIR, or $GIT_INFO_DIR are impacted.

package extern (C) nothrow @nogc
int
git_repository_new

Parameters

out_ libgit2_d.types.git_repository**

The blank repository

Return Value

Type: int

0 on success, or an error code

Meta