Value | Meaning |
---|---|
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 |
GIT_CLONE_LOCAL_NO_LINKS | Bypass the git-aware transport, but do not try to use hardlinks. |
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.