git_dag.git_repository.RegexParser¶
- class git_dag.git_repository.RegexParser[source]¶
Bases:
object
Regex parser for files associated with git objects.
Note¶
All this is quite ad hoc.
Methods
Parse a commit object file (read with
git cat-file -p
).Parse an object descriptor with format
SHA OBJECT_TYPE
.Parse stash info as returned by
GitCommand.get_stash_info()
.Parse a tag object file (read using
git cat-file -p
).Parse a tree object file (read with
cat-file -p
).- static parse_commit_info(data: list[str]) dict[str, str | list[str]] [source]¶
Parse a commit object file (read with
git cat-file -p
).
- static parse_object_descriptor(string: str) dict[str, str] [source]¶
Parse an object descriptor with format
SHA OBJECT_TYPE
.
- static parse_stash_info(data: list[str] | None) list[dict[str, str]] [source]¶
Parse stash info as returned by
GitCommand.get_stash_info()
.