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
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 inraw_data
, theGitTree._children
field is still not initialized (and theGitTree
instances are not fully functional). The remaining post-processing is performed inpost_process_inspector_data()
(as all instances need to be formed first). Theis_ready
property indicates whether an instance has been fully initialized.