Class Subrepofile

class multigit.Subrepofile[source]

Process a subrepo file into a “valid” dictionary

load(subrepos_file)[source]

Loads a subrepos file at path.

Parameters:

subrepos_file (str) – absolute path to subrepos file

Return list of dicts:

list of dictionaries similar to the SUBREPOS_FILE one, or None if couldn’t find it.

  • subrepo:
    • subrepo[‘path’]: will be translated to an absolute path.

    • subrepo[‘gitref_type’]: will be one of ‘branch’, ‘tag’, ‘commit’, or None.

    • subrepo[gitref_type]: (they will be named after the contents of subrepo[‘gitref_type’]): the specific gitref value (a commit, branch or tag).

  • subrepo: (…)