Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd Submodule type. #499
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. |
Thrimbda
commented
Dec 26, 2016
|
may I ask how to add a submodule using pygit2? |
pks-t commentedMar 4, 2015
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.