libgit2

git_clone_local_t

Version:

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

GIT_CLONE_LOCAL_AUTO
0

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

GIT_CLONE_LOCAL
1

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

GIT_CLONE_NO_LOCAL
2

Do no bypass the git-aware transport

GIT_CLONE_LOCAL_NO_LINKS
3

Bypass the git-aware transport, but do not try to use hardlinks.

Versions