pub enum Change {
Addition {
entry_mode: EntryMode,
oid: ObjectId,
},
Deletion {
entry_mode: EntryMode,
oid: ObjectId,
},
Modification {
previous_entry_mode: EntryMode,
previous_oid: ObjectId,
entry_mode: EntryMode,
oid: ObjectId,
},
}Expand description
Represents any possible change in order to turn one tree into another.
Variants
Addition
Fields
entry_mode: EntryModeThe mode of the added entry.
oid: ObjectIdThe object id of the added entry.
An entry was added, like the addition of a file or directory.
Deletion
Fields
entry_mode: EntryModeThe mode of the deleted entry.
oid: ObjectIdThe object id of the deleted entry.
An entry was deleted, like the deletion of a file or directory.
Modification
Fields
previous_entry_mode: EntryModeThe mode of the entry before the modification.
previous_oid: ObjectIdThe object id of the entry before the modification.
entry_mode: EntryModeThe mode of the entry after the modification.
oid: ObjectIdThe object id of the after before the modification.
An entry was modified, e.g. changing the contents of a file adjusts its object id and turning a file into a symbolic link adjusts its mode.
Auto Trait Implementations
impl RefUnwindSafe for Change
impl Send for Change
impl Sync for Change
impl Unpin for Change
impl UnwindSafe for Change
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more