pub struct Options {
pub destination_must_be_empty: bool,
pub fs_capabilities: Option<Capabilities>,
}
Expand description
Options for use in into()
;
Fields§
§destination_must_be_empty: bool
If true, and the kind of repository to create has a worktree, then the destination directory must be empty.
By default repos with worktree can be initialized into a non-empty repository as long as there is no .git
directory.
fs_capabilities: Option<Capabilities>
If set, use these filesystem capabilities to populate the respective git-config fields.
If None
, the directory will be probed.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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