Using gitpython, I would like to use repo.git.submodule('foreach', …)
and get the variables available such as name
, sm_path
, displaypath
, sha1
and toplevel
as defined in the git documentation.
I couldn't find any documentation on gitpython and my understanding of the API is limited.