MCPcopy Create free account
hub / github.com/commitizen-tools/commitizen / GitObject

Class GitObject

commitizen/git.py:48–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46
47
48class GitObject:
49 rev: str
50 name: str
51 date: str
52
53 def __eq__(self, other: object) -> bool:
54 return hasattr(other, "rev") and self.rev == other.rev
55
56 def __hash__(self) -> int:
57 return hash(self.rev)
58
59
60class GitCommit(GitObject):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected