Struct git_checks::Commit [] [src]

pub struct Commit {
    pub sha1: CommitId,
    pub sha1_short: String,
    pub message: String,
    pub parents: Vec<CommitId>,
    pub diffs: Vec<DiffInfo>,
    pub author: Identity,
    pub committer: Identity,
    // some fields omitted
}

Representation of a commit with information useful for commit checks.

Fields

The SHA1 of the commit.

An unambiguous short hash for the commit.

The commit message.

The parents of the commit.

Information about files that changed in this commit.

The identity of the author.

The identity of the commiter.

Methods

impl Commit
[src]

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

Get the patch difference for the given path.

Trait Implementations

impl Debug for Commit
[src]

Formats the value using the given formatter.