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