pub struct CloneIntoOptions {Show 14 fields
pub url: String,
pub remote_name: String,
pub environment: Environment,
pub initial_branch: String,
pub thread_policy: ThreadPolicy,
pub depth: Option<u32>,
pub filter: Option<ObjectFilterSpec>,
pub branch: Option<String>,
pub single_branch: Option<bool>,
pub tags: Option<CloneTags>,
pub promisor_fetcher: Option<Arc<dyn PromisorFetcher>>,
pub bare: bool,
pub checkout: bool,
pub bundle_cache: Option<PathBuf>,
}Expand description
Options for clone_into: configure a remote and fetch into an already-open repository.
Fields§
§url: StringSource URL or path.
remote_name: StringRemote name to configure (default DEFAULT_REMOTE).
environment: EnvironmentProcess environment for config and reflog identity.
initial_branch: StringInitial branch name when the repository has no commits yet (main).
thread_policy: ThreadPolicyGlobal thread policy for fetch pack ingest.
depth: Option<u32>Shallow clone depth.
filter: Option<ObjectFilterSpec>Partial-clone filter for the fetch.
branch: Option<String>Branch or tag to check out.
single_branch: Option<bool>Single-branch fetch mode.
Tag fetch mode.
promisor_fetcher: Option<Arc<dyn PromisorFetcher>>Promisor fetcher for checkout prefetch.
bare: boolWhether this repository is bare (affects ref layout).
checkout: boolPopulate the working tree after fetch.
bundle_cache: Option<PathBuf>Bundle-uri cache directory.
Implementations§
Source§impl CloneIntoOptions
impl CloneIntoOptions
Sourcepub fn new(url: impl Into<String>) -> Self
pub fn new(url: impl Into<String>) -> Self
Options for fetching from url into an existing repository.
Sourcepub fn with_environment(self, environment: Environment) -> Self
pub fn with_environment(self, environment: Environment) -> Self
Replace the process environment used for config and reflog identity.
Auto Trait Implementations§
impl !RefUnwindSafe for CloneIntoOptions
impl !UnwindSafe for CloneIntoOptions
impl Freeze for CloneIntoOptions
impl Send for CloneIntoOptions
impl Sync for CloneIntoOptions
impl Unpin for CloneIntoOptions
impl UnsafeUnpin for CloneIntoOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more