Closed FintanH closed 1 year ago
Supersedes #116, as it uses git2's functionality for parsing commit trailers.
git2
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.
Looking good. Should we include a test?
Regarding the questions about tests, I believe these should suffice. It covers the cases of no, one, and two trailers :)
Supersedes #116, as it uses
git2
's functionality for parsing commit 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.