Class Subrepos
- class multigit.Subrepos[source]
Recursively reads subrepos files and runs git commands as per its findings
- process(base_path, subrepos_filename='subrepos', report_only=True)[source]
Recursively finds and processes subrepos files.
If there’s a ‘subrepos’ file right a base_path, it will be processed.
If there is not a ‘subrepos’ file at base_path and base_path is within a git repo, it will try to find one at its root.
- Parameters:
base_path (str) – the absolute path to the directory where subrepos file will be searched for and processed.
subrepos_filename (str) – ‘subrepos’. Name of file holding subrepos’ definitions.
report_only (bool) – True, just shows dirtree status; False, updates dirtree.
- __print_subrepo_status(subrepo)
prints a report on the repo info provided as param.
- Parameters:
subrepo (dict) – a dictionary in the enhanced form returned by __process_subrepo()