pub struct StashCommands;Expand description
Stash-related commands grouped together
Implementations§
Source§impl StashCommands
impl StashCommands
Sourcepub fn create_branch(
branch_name: String,
stash_ref: Option<String>,
) -> Result<String>
pub fn create_branch( branch_name: String, stash_ref: Option<String>, ) -> Result<String>
Create a branch from a stash
Sourcepub fn apply_by_branch(branch_name: String, list_only: bool) -> Result<String>
pub fn apply_by_branch(branch_name: String, list_only: bool) -> Result<String>
Apply stashes by branch
Sourcepub fn interactive() -> Result<String>
pub fn interactive() -> Result<String>
Interactive stash management
Auto Trait Implementations§
impl Freeze for StashCommands
impl RefUnwindSafe for StashCommands
impl Send for StashCommands
impl Sync for StashCommands
impl Unpin for StashCommands
impl UnwindSafe for StashCommands
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> 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