Code

Run "git repack -a -d" once more at end, if there's 1MB or more of not-packed data.
[git.git] / gitMergeCommon.py
index ff6f58a07c8f46563d34876a70449d79d527300c..fdbf9e4778fd7d44667e475ba659d64986b2e097 100644 (file)
@@ -107,7 +107,10 @@ def isSha(obj):
     return (type(obj) is str and bool(shaRE.match(obj))) or \
            (type(obj) is int and obj >= 1)
 
-class Commit:
+class Commit(object):
+    __slots__ = ['parents', 'firstLineMsg', 'children', '_tree', 'sha',
+                 'virtual']
+
     def __init__(self, sha, parents, tree=None):
         self.parents = parents
         self.firstLineMsg = None