pub struct DiffEntry {
pub path: String,
pub old_path: Option<String>,
pub old_oid: Oid,
pub new_oid: Oid,
pub status: FileStatus,
}Expand description
A single file change between two refs.
Fields§
§path: StringPath of the changed file in the new tree.
old_path: Option<String>Previous path when renamed or copied.
old_oid: OidPrevious object ID.
new_oid: OidNew object ID.
status: FileStatusKind of change.
Trait Implementations§
impl Eq for DiffEntry
impl StructuralPartialEq for DiffEntry
Auto Trait Implementations§
impl Freeze for DiffEntry
impl RefUnwindSafe for DiffEntry
impl Send for DiffEntry
impl Sync for DiffEntry
impl Unpin for DiffEntry
impl UnsafeUnpin for DiffEntry
impl UnwindSafe for DiffEntry
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