pub struct Commit {
    pub sha1: CommitId,
    pub message: String,
    pub parents: Vec<CommitId>,
    pub diffs: Vec<DiffInfo>,
    pub author: Identity,
    pub committer: Identity,
    /* private fields */
}
Expand description

Representation of a commit with information useful for commit checks.

Fields

sha1: CommitId

The SHA1 of the commit.

message: String

The commit message.

parents: Vec<CommitId>

The parents of the commit.

diffs: Vec<DiffInfo>

Information about files that changed in this commit.

author: Identity

The identity of the author.

committer: Identity

The identity of the commiter.

Implementations

Create a new commit from the given context for the SHA1.

Get the patch difference for the given path.

Trait Implementations

A workarea which may be used to work on the content.

The SHA1 of the commit (if the content is of a commit).

The differences in the content.

Get the patch difference for the given path.

Return a vector of files modified in a diff. Read more

Formats the value using the given formatter. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.