pub struct UndoArgs {
pub steps: usize,
pub list: bool,
pub depth: usize,
pub preview: bool,
pub hard: 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.
hard: boolPermit undo to rewind worktree files to the selected operation’s prior state. Without this explicit opt-in, an undo that would rewrite the worktree refuses before changing repository state or files.
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.