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.

@param repo Repo to make bare @return 0 on success, <0 on failure

package extern (C) nothrow @nogc
int
git_repository_set_bare

Meta