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.

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.