Skip to main content

Module clone

Module clone 

Source
Expand description

clone API (re-exported at this path).

Structs§

CloneIntoOptions
Options for clone_into: configure a remote and fetch into an already-open repository.
CloneIntoOutcome
Result of clone_into.
CloneOptions
Options for clone.
CloneOutcome
Result of a successful clone.

Enums§

CloneCheckout
Whether clone checked out the default branch or left the work tree empty.
CloneError
Errors during clone.
CloneHead
Initial checkout disposition after clone (before working-tree checkout).
CloneTags
Which tags to fetch during clone, matching git clone tag behavior.

Functions§

cleanup_failed_clone
Remove a partially created clone destination.
clone
Initialize, fetch, configure the default branch, and optionally check out files.
clone_effective_single_branch
Whether the clone fetches only one branch (git clone --single-branch semantics).
clone_into
Configure a remote on repo, fetch from opts.url, set up HEAD, and optionally check out.
derive_clone_dir
Derive a destination directory from a clone URL (Git git_url_basename).
dest_preexisted_empty
Whether path is an existing empty directory (used for failed-clone cleanup policy).