nicetoolbox.utils.git_utils.GitMetadata

class nicetoolbox.utils.git_utils.GitMetadata(commit_hash, commit_summary)[source]

Bases: NamedTuple

Create new instance of GitMetadata(commit_hash, commit_summary)

Methods

count

Return number of occurrences of value.

index

Return first index of value.

Attributes

commit_hash

Alias for field number 0

commit_summary

Alias for field number 1

__add__(value, /)

Return self+value.

__mul__(value, /)

Return self*value.

commit_hash: str

Alias for field number 0

commit_summary: str

Alias for field number 1

count(value, /)

Return number of occurrences of value.

index(value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.