git_repository_set_bare

Set a repository to be bare.

Clear the working directory and set core.bare to true. You may also want to call git_repository_set_index(repo, null) since a bare repo typically does not have an index, but this function will not do that for you.

package extern (C) nothrow @nogc
int
git_repository_set_bare

Parameters

repo libgit2_d.types.git_repository*

Repo to make bare

Return Value

Type: int

0 on success, <0 on failure

Meta