#git #commit #radicle #header #parser #displaying #signature

git-commit

A small library for parsing, displaying and creating a git commit

3 releases (breaking)

0.3.0 Feb 9, 2023
0.2.0 Nov 4, 2022
0.1.0 Nov 4, 2022

#2609 in Parser implementations

Download history 38/week @ 2024-03-28 29/week @ 2024-04-04

401 downloads per month

MIT/Apache and GPL-3.0-or-later

17KB
382 lines

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.

Dependencies

~11MB
~275K SLoC