pub struct WorktreeRemoveOptions {
pub force: bool,
pub commit: Option<WorktreeCommit>,
pub stash: Option<String>,
}Expand description
The arguments of crate::GitBackend::worktree_remove besides the path.
Fields§
§force: boolRemove even with uncommitted changes (they are lost).
commit: Option<WorktreeCommit>Stage and commit every change first (tracked and untracked,
.gitignore respected), then remove.
stash: Option<String>Stash every change first (git stash push -u, with this message), then
remove. The stash stack is shared by all worktrees of the repository.
Trait Implementations§
Source§impl Clone for WorktreeRemoveOptions
impl Clone for WorktreeRemoveOptions
Source§impl Debug for WorktreeRemoveOptions
impl Debug for WorktreeRemoveOptions
Source§impl Default for WorktreeRemoveOptions
impl Default for WorktreeRemoveOptions
Source§impl<'de> Deserialize<'de> for WorktreeRemoveOptions
impl<'de> Deserialize<'de> for WorktreeRemoveOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for WorktreeRemoveOptions
Source§impl PartialEq for WorktreeRemoveOptions
impl PartialEq for WorktreeRemoveOptions
Source§impl Serialize for WorktreeRemoveOptions
impl Serialize for WorktreeRemoveOptions
impl StructuralPartialEq for WorktreeRemoveOptions
Auto Trait Implementations§
impl Forget for WorktreeRemoveOptions
impl Freeze for WorktreeRemoveOptions
impl Move for WorktreeRemoveOptions
impl RefUnwindSafe for WorktreeRemoveOptions
impl Send for WorktreeRemoveOptions
impl Sync for WorktreeRemoveOptions
impl Unpin for WorktreeRemoveOptions
impl UnsafeUnpin for WorktreeRemoveOptions
impl UnwindSafe for WorktreeRemoveOptions
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