df89
10.10.21 c4d692c98f3e06d39cf80bf8fa2035c2e398646b
commit | author | age
c4d692 1 from commitBody import CommitBody
D 2 from commitTag import CommitTag
3
4 class Commit:
5     def __init__(self, rawCommit):
6         self.body = CommitBody(rawCommit.body)
7         self.tag = CommitTag(rawCommit.tag)
8         self.hash = rawCommit.hash
9     
10     def appendShortHash(self):
11         """return the first digits from the hash as string"""
12         return " (" + self.hash[:6] + ")"