chiark / gitweb /
New stg command: assimilate
[stgit] / stgit / git.py
index 43bdc7ee8e37f81c565f6c27d30dbd0c4525d355..42b0d12b3fbae6800c93c5f8b82dc25abf6e6887 100644 (file)
@@ -79,6 +79,9 @@ class Commit:
     def get_log(self):
         return self.__log
 
+    def __str__(self):
+        return self.get_id_hash()
+
 # dictionary of Commit objects, used to avoid multiple calls to git
 __commits = dict()