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
An entry was added, like the addition of a file or directory.
Deletion
Fields
An entry was deleted, like the deletion of a file or directory.
Modification
Fields
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.
Trait Implementations§
source§impl Ord for Change
impl Ord for Change
source§impl PartialEq<Change> for Change
impl PartialEq<Change> for Change
source§impl PartialOrd<Change> for Change
impl PartialOrd<Change> for Change
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more