pub struct AddCommand {
pub globals: Vec<OsString>,
pub passthrough: Vec<OsString>,
pub double_dash: Option<usize>,
pub path: OsString,
pub commit_ish: Option<OsString>,
pub quiet: bool,
pub checkout: bool,
pub orphan: bool,
pub no_cow: bool,
}Expand description
A git worktree add invocation parsed well enough to consider accelerating.
Fields§
§globals: Vec<OsString>Git’s global options, in order, to place before the worktree subcommand.
passthrough: Vec<OsString>The arguments for git worktree add, with sprout’s own flags removed.
double_dash: Option<usize>Position of -- within passthrough, if the user wrote one.
path: OsStringThe destination worktree path.
commit_ish: Option<OsString>The commit-ish to check out, when the user named one.
quiet: bool§checkout: boolFalse when --no-checkout was given.
orphan: bool§no_cow: boolTrue when the user asked for the plain git worktree add path.
Implementations§
Source§impl AddCommand
impl AddCommand
Sourcepub fn git_args(&self) -> Vec<OsString>
pub fn git_args(&self) -> Vec<OsString>
The argument list that reproduces this request through git itself.
Sourcepub fn worktree_add_args_no_checkout(&self) -> Vec<OsString>
pub fn worktree_add_args_no_checkout(&self) -> Vec<OsString>
The subcommand arguments for step 2, which creates the worktree without files. The globals are left out; whoever runs git puts them in front.
Trait Implementations§
Source§impl Clone for AddCommand
impl Clone for AddCommand
Source§fn clone(&self) -> AddCommand
fn clone(&self) -> AddCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AddCommand
impl Debug for AddCommand
impl Eq for AddCommand
Source§impl PartialEq for AddCommand
impl PartialEq for AddCommand
impl StructuralPartialEq for AddCommand
Auto Trait Implementations§
impl Freeze for AddCommand
impl RefUnwindSafe for AddCommand
impl Send for AddCommand
impl Sync for AddCommand
impl Unpin for AddCommand
impl UnsafeUnpin for AddCommand
impl UnwindSafe for AddCommand
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.