From f49c95662bda1f2c337dbe872644afa1ca5cbbec Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 20 Feb 2026 22:52:58 +0800 Subject: objectid: Rename from oid --- object/tag_parse.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'object/tag_parse.go') diff --git a/object/tag_parse.go b/object/tag_parse.go index 27dc998d..c991404f 100644 --- a/object/tag_parse.go +++ b/object/tag_parse.go @@ -6,11 +6,11 @@ import ( "fmt" "codeberg.org/lindenii/furgit/objecttype" - "codeberg.org/lindenii/furgit/oid" + "codeberg.org/lindenii/furgit/objectid" ) // ParseTag decodes a tag object body. -func ParseTag(body []byte, algo oid.Algorithm) (*Tag, error) { +func ParseTag(body []byte, algo objectid.Algorithm) (*Tag, error) { t := new(Tag) i := 0 var haveTarget, haveType bool @@ -33,7 +33,7 @@ func ParseTag(body []byte, algo oid.Algorithm) (*Tag, error) { switch string(key) { case "object": - id, err := oid.ParseHex(algo, string(value)) + id, err := objectid.ParseHex(algo, string(value)) if err != nil { return nil, fmt.Errorf("object: tag: object: %w", err) } -- cgit v1.3.1-10-gc9f91