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]

[src]

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

[src]

Deprecated since 2.3.0

: please use the Content::modified_files trait method instead

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.

[src]

Get the patch difference for the given path.

Trait Implementations

impl Debug for Commit
[src]

[src]

Formats the value using the given formatter.

impl Content for Commit
[src]

[src]

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

[src]

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

[src]

The differences in the content.

[src]

Get the patch difference for the given path.

[src]

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