pub enum DiffTarget {
WorkingTreeVsIndex,
IndexVsHead,
CommitVsParent(Oid),
CommitRange(Oid, Oid),
CommitVsWorkingTree(Oid),
CommitSpan(Oid, Oid),
}Variants§
WorkingTreeVsIndex
IndexVsHead
CommitVsParent(Oid)
CommitRange(Oid, Oid)
CommitVsWorkingTree(Oid)
The commit’s tree against the working tree: what a user would have to do to the commit to get what is on disk (staged and unstaged changes of tracked files; untracked files are not part of any diff target). The “WIP against a commit” comparison.
CommitSpan(Oid, Oid)
From the first parent of .0 (the empty tree for a root commit)
to .1: the combined changes of a run of commits whose oldest is
.0 and whose newest is .1.
Trait Implementations§
Source§impl Clone for DiffTarget
impl Clone for DiffTarget
Source§impl Debug for DiffTarget
impl Debug for DiffTarget
Source§impl<'de> Deserialize<'de> for DiffTarget
impl<'de> Deserialize<'de> for DiffTarget
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 DiffTarget
Source§impl PartialEq for DiffTarget
impl PartialEq for DiffTarget
Source§impl Serialize for DiffTarget
impl Serialize for DiffTarget
impl StructuralPartialEq for DiffTarget
Auto Trait Implementations§
impl Forget for DiffTarget
impl Freeze for DiffTarget
impl Move for DiffTarget
impl RefUnwindSafe for DiffTarget
impl Send for DiffTarget
impl Sync for DiffTarget
impl Unpin for DiffTarget
impl UnsafeUnpin for DiffTarget
impl UnwindSafe for DiffTarget
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