Expand description
clone API (re-exported at this path).
Structs§
- Clone
Into Options - Options for
clone_into: configure a remote and fetch into an already-open repository. - Clone
Into Outcome - Result of
clone_into. - Clone
Options - Options for
clone. - Clone
Outcome - Result of a successful
clone.
Enums§
- Clone
Checkout - Whether
clonechecked out the default branch or left the work tree empty. - Clone
Error - Errors during
clone. - Clone
Head - Initial checkout disposition after
clone(before working-tree checkout). - Clone
Tags - Which tags to fetch during
clone, matchinggit clonetag 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-branchsemantics). - clone_
into - Configure a remote on
repo, fetch fromopts.url, set upHEAD, and optionally check out. - derive_
clone_ dir - Derive a destination directory from a clone URL (Git
git_url_basename). - dest_
preexisted_ empty - Whether
pathis an existing empty directory (used for failed-clone cleanup policy).