From c4d692c98f3e06d39cf80bf8fa2035c2e398646b Mon Sep 17 00:00:00 2001
From: df89 <df89@me.com>
Date: Sun, 10 Oct 2021 18:24:20 +0200
Subject: [PATCH] refactor: separated script into different files

---
 commit.py |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/commit.py b/commit.py
new file mode 100644
index 0000000..5272465
--- /dev/null
+++ b/commit.py
@@ -0,0 +1,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] + ")"
\ No newline at end of file

--
Gitblit v1.9.1