pub enum ReflogAction {
Show {
ref_name: Option<String>,
max_count: Option<u32>,
format: Option<String>,
},
Expire {
all: bool,
expire: Option<String>,
expire_unreachable: Option<String>,
stale_fix: bool,
refs: Vec<String>,
},
Delete {
entries: Vec<String>,
rewrite: bool,
},
Exists {
ref_name: String,
},
}Expand description
Actions supported by git reflog.
Variants§
Show
git reflog [show] [<ref>].
Fields
Expire
git reflog expire [options] <refs>.
Fields
Delete
git reflog delete <entry>….
Exists
git reflog exists <ref>.
Trait Implementations§
Source§impl Clone for ReflogAction
impl Clone for ReflogAction
Source§fn clone(&self) -> ReflogAction
fn clone(&self) -> ReflogAction
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 ReflogAction
impl RefUnwindSafe for ReflogAction
impl Send for ReflogAction
impl Sync for ReflogAction
impl Unpin for ReflogAction
impl UnsafeUnpin for ReflogAction
impl UnwindSafe for ReflogAction
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