pub enum RevisionSelector {
Live,
Dirty {
include_untracked: bool,
include_ignored: bool,
},
Ref {
name: String,
},
Commit {
oid: String,
},
Tree {
oid: String,
},
Worktree {
path: Option<PathBuf>,
worktree_id: Option<String>,
},
}Expand description
Caller-supplied revision selector.
Variants§
Live
The currently loaded live workspace.
Dirty
Point-in-time exact-byte dirty snapshot of the live workspace.
Fields
Ref
Mutable Git ref, pinned to commit/tree at load time.
Commit
Immutable commit object id.
Tree
Immutable tree object id.
Worktree
Explicit managed or operator-provided worktree.
Trait Implementations§
Source§impl Clone for RevisionSelector
impl Clone for RevisionSelector
Source§fn clone(&self) -> RevisionSelector
fn clone(&self) -> RevisionSelector
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 moreSource§impl Debug for RevisionSelector
impl Debug for RevisionSelector
Source§impl<'de> Deserialize<'de> for RevisionSelector
impl<'de> Deserialize<'de> for RevisionSelector
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 RevisionSelector
Source§impl PartialEq for RevisionSelector
impl PartialEq for RevisionSelector
Source§fn eq(&self, other: &RevisionSelector) -> bool
fn eq(&self, other: &RevisionSelector) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RevisionSelector
impl Serialize for RevisionSelector
impl StructuralPartialEq for RevisionSelector
Auto Trait Implementations§
impl Freeze for RevisionSelector
impl RefUnwindSafe for RevisionSelector
impl Send for RevisionSelector
impl Sync for RevisionSelector
impl Unpin for RevisionSelector
impl UnsafeUnpin for RevisionSelector
impl UnwindSafe for RevisionSelector
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