move OBJ_ definitions for delta objects to pack class
authorMatthias Lederhofer <[email protected]>
Tue, 23 Jan 2007 14:33:55 +0000 (23 15:33 +0100)
committerMatthias Lederhofer <[email protected]>
Tue, 23 Jan 2007 14:35:40 +0000 (23 15:35 +0100)
git/internal/object.rb
git/internal/pack.rb

index 1ff7950..ae479c6 100644 (file)
@@ -6,11 +6,8 @@ module Git module Internal
   OBJ_TREE = 2
   OBJ_BLOB = 3
   OBJ_TAG = 4
   OBJ_TREE = 2
   OBJ_BLOB = 3
   OBJ_TAG = 4
-  OBJ_OFS_DELTA = 6
-  OBJ_REF_DELTA = 7
 
 
-  OBJ_TYPES = [nil, :commit, :tree, :blob, :tag,
-    nil, nil, :delta, nil].freeze
+  OBJ_TYPES = [nil, :commit, :tree, :blob, :tag].freeze
 
   class RawObject
     attr_accessor :type, :content
 
   class RawObject
     attr_accessor :type, :content
index 255a1c0..7d9ec63 100644 (file)
@@ -6,6 +6,9 @@ module Git module Internal
   end
 
   class PackStorage
   end
 
   class PackStorage
+    OBJ_OFS_DELTA = 6
+    OBJ_REF_DELTA = 7
+
     FanOutCount = 256
     SHA1Size = 20
     IdxOffsetSize = 4
     FanOutCount = 256
     SHA1Size = 20
     IdxOffsetSize = 4