libgit2 / pygit2

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

Group submodule functions under Repository.submodules #1250

Closed jorio closed 7 months ago

jorio commented 7 months ago

Following up on https://github.com/libgit2/pygit2/pull/1248#issuecomment-1818816288, this PR implements a Submodules class that groups submodule functions in a Repository, much like Branches, References and RemoteCollection.

For backward compatibility, I turned the old functions into simple pass-throughs to the new class. Should we write unit tests for the deprecated versions?

jdavid commented 7 months ago

Great @jorio

Could you please:

Thanks!