Add Submodule type.#499
Conversation
|
If the pull request is considered for merge I can provide tests for this. First I'd like some comments though as I'm unexperienced with Python's cffi. |
|
Hello, This is a feature that could be done from cffi without performance problems. Having a Anyway, the proposed API is fine too. If you add the unit tests, and after a couple of coding review iterations, this will be in a mergeable state. Basically I leave it up to you whether you want to explore the possibility of |
|
Thanks for your comments. |
|
I've fixed the issues you've highlighted and added some basic tests for the preliminary API. |
|
may I ask how to add a submodule using pygit2? |
Add the submodule type with methods Repository.lookup_submodule(path)->Submodule, Repository.listall_submodules()->[paths], Submodule.open()->Repository and attributes Submodule.path, Submodule.url, Submodule.name.