git-commit: remove dependency on git-trailers

The git-trailers crate depends on parsing logic using nom. This is a
heavy dependency for something that can be done using git2.

Remove the dependency of git-trailers in git-commit and localise the
trailer types -- using git2 to parse the trailers out of the git
commit message.

Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
X-Clacks-Overhead: GNU Terry Pratchett
This commit is contained in:
Fintan Halpenny
2023-02-14 15:34:32 +00:00
parent 2456fcdb04
commit ab05b63614
4 changed files with 228 additions and 23 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ doc = false
[features]
test = []
[dependencies.git-commit]
[dev-dependencies.git-commit]
path = ".."
[dev-dependencies.git2]