Struct git_repository::create::Options
source · 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.