pub struct RevertOptions {
pub depth: Depth,
pub use_commit_times: bool,
pub changelists: Vec<String>,
pub clear_changelists: bool,
pub metadata_only: bool,
pub added_keep_local: bool,
}Expand description
Options for Context::revert.
Fields§
§depth: DepthHow deeply to revert below the target path.
use_commit_times: boolIf true, set reverted files’ timestamps to their last-commit time.
If false, touch them with the current time.
changelists: Vec<String>Only revert items in these changelists (empty = all items).
clear_changelists: boolIf true, also clear changelist membership on reverted items.
metadata_only: boolIf true, only revert metadata (e.g., remove conflict markers)
without touching working-copy file content.
added_keep_local: boolIf true, items that were added (not copied) are kept on disk
after being un-scheduled; otherwise they are deleted.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RevertOptions
impl RefUnwindSafe for RevertOptions
impl Send for RevertOptions
impl Sync for RevertOptions
impl Unpin for RevertOptions
impl UnsafeUnpin for RevertOptions
impl UnwindSafe for RevertOptions
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