Struct git_checks::Commit [] [src]

pub struct Commit {
    pub sha1: CommitId,
    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.

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.

Return a vector of files changed by the commit.

This excludes paths which are either not actually files (e.g., submodules and symlinks), as well as paths which were deleted in this commit.

Get the patch difference for the given path.

Trait Implementations

impl Debug for Commit
[src]

Formats the value using the given formatter.