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] + ")" |