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

Addition

An entry was added, like the addition of a file or directory.

Fields of Addition

entry_mode: EntryMode

The mode of the added entry.

oid: ObjectId

The object id of the added entry.

Deletion

An entry was deleted, like the deletion of a file or directory.

Fields of Deletion

entry_mode: EntryMode

The mode of the deleted entry.

oid: ObjectId

The object id of the deleted entry.

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.

Fields of Modification

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.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.