libgit2 / pygit2

Python bindings for libgit2
https://www.pygit2.org/
Other
1.58k stars 382 forks source link

feat: Wrap libgit2 git_message_trailers #1101

Closed thcipriani closed 2 years ago

thcipriani commented 2 years ago

git-log has a formatting function to extract trailers from the commit message field. The libgit2 function git_message_trailers implements this logic and seems to catch a lot of corner cases.

Rather than ask users to extract trailers from commit messages by fiddling with the message attribute of the Commit object, wrap the libgit2 implementation.

thcipriani commented 2 years ago

Hi all! This is my first attempt to generate a python module wrapping a library. I did my best to follow the patterns of the repo.

I added a test and modified the recipes doc. Let me know if I missed anything! ❤️

jdavid commented 2 years ago

thanks!