Crate git_commit

source ·
Expand description

The git-commit crate provides parsing a displaying of a git commit.

The Commit data can be constructed using the FromStr implementation, or by converting from a git2::Buf.

The Headers can be accessed via Commit::headers. If the signatures of the commit are of particular interest, the Commit::signatures method can be used, which returns a series of Signatures.

Re-exports

pub use author::Author;
pub use headers::Headers;
pub use headers::Signature;

Modules

Structs

A git commit in its object description form, i.e. the output of git cat-file for a commit object.