git-commit: add trailers to Commit

Add git trailers to the data of the Commit.

For convenience, git2 is used to extract the git trailers and they are
then converted to `OwnedTrailer`.

Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
X-Clacks-Overhead: GNU Terry Pratchett
This commit is contained in:
Fintan Halpenny
2022-11-04 12:33:17 +00:00
parent 8745e46745
commit 9dec69a29a
3 changed files with 41 additions and 3 deletions
+4
View File
@@ -16,3 +16,7 @@ thiserror = "1"
version = "0.15.0"
default-features = false
features = ["vendored-libgit2"]
[dependencies.git-trailers]
version = "0.1.0"
path = "../git-trailers"