git_dag.git_repository.GitInspector

class git_dag.git_repository.GitInspector(repository_path: str | Path = '.', parse_trees: bool = False)[source]

Bases: object

Git inspector.

Methods

get_raw_objects

Return all raw objects in a git repository.

get_raw_objects() dict[str, GitObject][source]

Return all raw objects in a git repository.

Note

The objects are “raw”, in the sense that they are not fully initialized. For example, consider a GitTree object. Even though all necessary data is available in raw_data, the GitTree._children field is still not initialized (and the GitTree instances are not fully functional). The remaining post-processing is performed in post_process_inspector_data() (as all instances need to be formed first). The is_ready property indicates whether an instance has been fully initialized.