git_repository_reinit_filesystem

Update the filesystem config settings for an open repository

When a repository is initialized, config values are set based on the properties of the filesystem that the repository is on, such as "core.ignorecase", "core.filemode", "core.symlinks", etc. If the repository is moved to a new filesystem, these properties may no longer be correct and API calls may not behave as expected. This call reruns the phase of repository initialization that sets those properties to compensate for the current filesystem of the repo.

package extern (C) nothrow @nogc
int
git_repository_reinit_filesystem

Parameters

repo libgit2_d.types.git_repository*

A repository object

recurse_submodules int

Should submodules be updated recursively

Return Value

Type: int

0 on success, < 0 on error

Meta