pub struct InitOpts {
pub url: Option<String>,
pub repo_path: PathBuf,
pub tool_config_path: PathBuf,
pub bare: bool,
pub force: bool,
}Expand description
Inputs to init.
Fields§
§url: Option<String>Remote HTTPS URL to clone from. None when --bare.
Only HTTPS URLs are supported by the gix transport used here. SSH URLs will fail — see the module-level note.
repo_path: PathBufWhere to put the repo on disk.
tool_config_path: PathBufWhere to write config.toml.
bare: boolCreate an empty stub instead of cloning.
force: boolWipe an existing repo path before proceeding.
Auto Trait Implementations§
impl Freeze for InitOpts
impl RefUnwindSafe for InitOpts
impl Send for InitOpts
impl Sync for InitOpts
impl Unpin for InitOpts
impl UnsafeUnpin for InitOpts
impl UnwindSafe for InitOpts
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