Hi,
I'm looking to recreate the behavior of git branch --contains <commit> using pygit2. The core of the routine in git is implemented here and here in is_descendent_of and merge_bases_many. I've looked through the pygit2 source for the building blocks of something similar but couldn't find anything.
A few questions:
- is there something similar to this in
pygit2 that I missed?
- if no: is this considered too "high level" for this project?
- if no: would you be interested in a pull request for this feature should I find the time to do it?
- if yes: do you think this would be better implemented in C or python?
thanks!
Hi,
I'm looking to recreate the behavior of
git branch --contains <commit>usingpygit2. The core of the routine in git is implemented here and here inis_descendent_ofandmerge_bases_many. I've looked through thepygit2source for the building blocks of something similar but couldn't find anything.A few questions:
pygit2that I missed?thanks!