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: EntryMode
The mode of the added entry.
oid: ObjectId
The object id of the added entry.
An entry was added, like the addition of a file or directory.
Deletion
Fields
entry_mode: EntryMode
The mode of the deleted entry.
oid: ObjectId
The object id of the deleted entry.
An entry was deleted, like the deletion of a file or directory.
Modification
Fields
previous_entry_mode: EntryMode
The mode of the entry before the modification.
previous_oid: ObjectId
The object id of the entry before the modification.
entry_mode: EntryMode
The mode of the entry after the modification.
oid: ObjectId
The 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.