git_clone_local_t

Options for bypassing the git-aware transport on clone. Bypassing it means that instead of a fetch, libgit2 will copy the object database directory instead of figuring out what it needs, which is faster. If possible, it will hardlink the files to save space.

Values

ValueMeaning
GIT_CLONE_LOCAL_AUTO

Auto-detect (default), libgit2 will bypass the git-aware transport for local paths, but use a normal fetch for file:// urls.

GIT_CLONE_LOCAL

Bypass the git-aware transport even for a file:// url.

GIT_CLONE_NO_LOCAL

Do no bypass the git-aware transport

Meta