pub struct Commit<'repo> {
    pub id: ObjectId,
    pub data: Vec<u8>,
    /* private fields */
}
Expand description

A decoded commit object with access to its owning repository.

Please note that the limitations described in Object apply here as well.

Fields

id: ObjectId

The id of the commit

data: Vec<u8>

The fully decoded commit data

Implementations

Parse the commits message into a MessageRef, after decoding the entire commit object.

Decode the entire commit object in full and return the raw message bytes.

Decode the entire commit object and return it for accessing all commit information.

Note that the returned commit object doesn’t make object lookup easy but should be used for successive calls to string-ish information to avoid decoding the object unnecessarily.

Parse the commit and return the the tree object it points to.

Parse the commit and return the the tree id it points to.

Trait Implementations

Executes the destructor for this type. Read more

The type returned in the event of a conversion error.

Performs the conversion.

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 alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

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.