Enum git_diff::tree::visit::Change [−][src]
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
An entry was added, like the addition of a file or directory.
Fields of Addition
An entry was deleted, like the deletion of a file or directory.
Fields of Deletion
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.