pub enum StashAction {
Push {
message: Option<String>,
include_untracked: bool,
keep_index: bool,
},
Pop(Option<String>),
Apply(Option<String>),
Drop(Option<String>),
List,
Show(Option<String>),
Clear,
}Expand description
Actions supported by git stash.
Variants§
Push
git stash push [-m <msg>].
Fields
Pop(Option<String>)
git stash pop [stash@{n}].
Apply(Option<String>)
git stash apply [stash@{n}].
Drop(Option<String>)
git stash drop [stash@{n}].
List
git stash list.
Show(Option<String>)
git stash show [stash@{n}].
Clear
git stash clear.
Trait Implementations§
Source§impl Clone for StashAction
impl Clone for StashAction
Source§fn clone(&self) -> StashAction
fn clone(&self) -> StashAction
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 moreAuto Trait Implementations§
impl Freeze for StashAction
impl RefUnwindSafe for StashAction
impl Send for StashAction
impl Sync for StashAction
impl Unpin for StashAction
impl UnsafeUnpin for StashAction
impl UnwindSafe for StashAction
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