pub struct TemporaryBaseWorktree { /* private fields */ }Expand description
Temporary detached worktree for comparing audit results against a base ref.
Implementations§
Source§impl TemporaryBaseWorktree
impl TemporaryBaseWorktree
Sourcepub fn create(
repo_root: &Path,
base_ref: &str,
workspace_patterns: &[String],
) -> EngineResult<Self>
pub fn create( repo_root: &Path, base_ref: &str, workspace_patterns: &[String], ) -> EngineResult<Self>
Create a detached base worktree for base_ref.
workspace_patterns are the workspaces.patterns of the resolved
config. They add packages beyond the manifests, and the base view
must link the generated context of those packages too.
§Errors
Returns an engine error when the temp path cannot be generated, git
cannot be started, or the worktree cannot be created.
Trait Implementations§
Source§impl Debug for TemporaryBaseWorktree
impl Debug for TemporaryBaseWorktree
Source§impl Drop for TemporaryBaseWorktree
impl Drop for TemporaryBaseWorktree
Auto Trait Implementations§
impl Freeze for TemporaryBaseWorktree
impl RefUnwindSafe for TemporaryBaseWorktree
impl Send for TemporaryBaseWorktree
impl Sync for TemporaryBaseWorktree
impl Unpin for TemporaryBaseWorktree
impl UnsafeUnpin for TemporaryBaseWorktree
impl UnwindSafe for TemporaryBaseWorktree
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> 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> ⓘ
Converts
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> ⓘ
Converts
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