aboutsummaryrefslogtreecommitdiff
path: root/object/parse.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-06-07 10:19:14 +0000
committerGravatar Runxi Yu2026-06-07 10:20:49 +0000
commit2f3b8b0dc29547ca7406d00de38d3e3b425240dd (patch)
treeec9ae442ebb8f3d957e4404f20e06a262ab19286 /object/parse.go
parentobject/commit: Update to the new testgit (diff)
signatureNo signature
object/tag: Add
Diffstat (limited to 'object/parse.go')
-rw-r--r--object/parse.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/object/parse.go b/object/parse.go
index 6a60407c..bbede773 100644
--- a/object/parse.go
+++ b/object/parse.go
@@ -8,6 +8,7 @@ import (
"lindenii.org/go/furgit/object/commit"
"lindenii.org/go/furgit/object/header"
"lindenii.org/go/furgit/object/id"
+ "lindenii.org/go/furgit/object/tag"
"lindenii.org/go/furgit/object/typ"
)
@@ -46,7 +47,7 @@ func ParseWithoutHeader(ty typ.Type, body []byte, objectFormat id.ObjectFormat)
case typ.TypeCommit:
return commit.Parse(body, objectFormat) //nolint:wrapcheck
case typ.TypeTag:
- panic("TODO")
+ return tag.Parse(body, objectFormat) //nolint:wrapcheck
case typ.TypeUnknown:
return nil, typ.ErrInvalidType
default: