libgit2

git_repository_reinit_filesystem

Version:

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.

Signature

int git_repository_reinit_filesystem(git_repository *repo, int recurse_submodules);

Parameters

In
repo

A repository object

int
In
recurse_submodules

Should submodules be updated recursively

Returns

int

0 on success, < 0 on error

Versions