pub struct UndoArgs {
pub steps: usize,
pub list: bool,
pub depth: usize,
pub preview: bool,
pub redo: bool,
pub recover: bool,
pub allow_redact_undo: bool,
}Expand description
Arguments for the undo command.
Fields§
§steps: usizeUndo N operations.
list: boolList recent operations without undoing.
depth: usizeNumber of batches to list.
preview: boolPreview operations without undoing. --dry-run is an accepted
alias kept for muscle memory from git/other VCS tooling.
redo: boolRe-apply operations that a prior undo rewound.
recover: boolRestore the checkout-local state preserved by the most recent undo as worktree changes. HEAD and the current thread remain unchanged.
allow_redact_undo: boolExplicit opt-in for undoing a heddle redact apply. The inverse
removes the redaction record so subsequent materializes restore
the original blob bytes — i.e. previously-hidden content
becomes readable again. Without this flag, a heddle undo
chain that crosses a Redact refuses loudly rather than silently
re-exposing the content. Refused regardless of the flag when
a Purge has destroyed the bytes: Purge is irreversible.
Trait Implementations§
Source§impl Args for UndoArgs
impl Args for UndoArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for UndoArgs
impl FromArgMatches for UndoArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Auto Trait Implementations§
impl Freeze for UndoArgs
impl RefUnwindSafe for UndoArgs
impl Send for UndoArgs
impl Sync for UndoArgs
impl Unpin for UndoArgs
impl UnsafeUnpin for UndoArgs
impl UnwindSafe for UndoArgs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request