pub enum Selection {
Paths(Vec<PathBuf>),
All {
base: PathBuf,
},
}Expand description
Which worktrees a batch operation should target.
Shared by the rebase and push engines: both take an explicit selection and neither has a bare “do everything everywhere” mode. What a path that turns out to be unsuitable means — skipped and why — is each engine’s own business.
Variants§
Paths(Vec<PathBuf>)
Operate on exactly these worktree folders (each resolved to the worktree that contains it). A path that is unsuitable is reported and skipped, never acted on. The main working tree is a valid target like any other (ADR-0060); a push additionally refuses to force-push the repository’s remote default branch, but that gate is on the branch, not the worktree (ADR-0061).
All
Operate on every worktree of the repository that contains base (usually
the process working directory) — the main working tree included, alongside
every linked one (ADR-0060).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Selection
impl RefUnwindSafe for Selection
impl Send for Selection
impl Sync for Selection
impl Unpin for Selection
impl UnsafeUnpin for Selection
impl UnwindSafe for Selection
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more