Struct git_stree::SubtreeConfig
source · [−]pub struct SubtreeConfig { /* private fields */ }
Expand description
Configuration for a subtree
Implementations
true
if this subtree should also pull pre release tags e.g. “1.0.3-23-alpah”
pub fn new(
id: String,
follow: Option<String>,
origin: Option<String>,
upstream: Option<String>,
pull_pre_releases: bool
) -> Self
Return true
if upstream is set
Return true
if origin is set
Figure out which named ref to pull from.
Panics
Will panic if &self
has no upstream remote defined
Errors
Will return a PosixError
when fails to find a ref to pull
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for SubtreeConfig
impl Send for SubtreeConfig
impl Sync for SubtreeConfig
impl Unpin for SubtreeConfig
impl UnwindSafe for SubtreeConfig
Blanket Implementations
Mutably borrows from an owned value. Read more