Closed jorio closed 7 months ago
Great @jorio
Could you please:
submodule_status
, submodule_cache_all
and submodule_cache_clear
; these are new so no need to go through the deprecation process.add_submodule
, init_submodules
, lookup_submodule
and update_submodules
: call warnings.warn(...)
; see pygit2/repository.py
line 323Submodules
class to its own file submodules.py
Thanks!
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 likeBranches
,References
andRemoteCollection
.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?