aboutsummaryrefslogtreecommitdiff
path: root/object/type/objecttype.go
diff options
context:
space:
mode:
Diffstat (limited to 'object/type/objecttype.go')
-rw-r--r--object/type/objecttype.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/object/type/objecttype.go b/object/type/objecttype.go
new file mode 100644
index 00000000..2e12dadc
--- /dev/null
+++ b/object/type/objecttype.go
@@ -0,0 +1,16 @@
+// Package objecttype provides object type constants and names.
+package objecttype
+
+// Type mirrors Git object type tags in packfiles.
+type Type uint8
+
+const (
+ TypeInvalid Type = 0
+ TypeCommit Type = 1
+ TypeTree Type = 2
+ TypeBlob Type = 3
+ TypeTag Type = 4
+ TypeFuture Type = 5
+ TypeOfsDelta Type = 6
+ TypeRefDelta Type = 7
+)