pub struct RebaseManager { /* private fields */ }
Expand description
Manages rebase operations for stacks
Implementations§
Source§impl RebaseManager
impl RebaseManager
Sourcepub fn new(
stack_manager: StackManager,
git_repo: GitRepository,
options: RebaseOptions,
) -> Self
pub fn new( stack_manager: StackManager, git_repo: GitRepository, options: RebaseOptions, ) -> Self
Create a new rebase manager
Sourcepub fn rebase_stack(&mut self, stack_id: &Uuid) -> Result<RebaseResult>
pub fn rebase_stack(&mut self, stack_id: &Uuid) -> Result<RebaseResult>
Rebase an entire stack onto a new base
Sourcepub fn is_rebase_in_progress(&self) -> bool
pub fn is_rebase_in_progress(&self) -> bool
Check if rebase is in progress
Sourcepub fn abort_rebase(&self) -> Result<()>
pub fn abort_rebase(&self) -> Result<()>
Abort an in-progress rebase
Sourcepub fn continue_rebase(&self) -> Result<()>
pub fn continue_rebase(&self) -> Result<()>
Continue an in-progress rebase after conflict resolution
Auto Trait Implementations§
impl Freeze for RebaseManager
impl RefUnwindSafe for RebaseManager
impl Send for RebaseManager
impl !Sync for RebaseManager
impl Unpin for RebaseManager
impl UnwindSafe for RebaseManager
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