From 7d9c128ce04875f970c78673500c0a492000398f Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Wed, 25 Mar 2026 14:21:09 +0000 Subject: *: objecttype, objectheader -> object/type, object/header --- object/type/objecttype.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 object/type/objecttype.go (limited to 'object/type/objecttype.go') 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 +) -- cgit v1.3.1-10-gc9f91