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/commit_parse.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'object/commit_parse.go') diff --git a/object/commit_parse.go b/object/commit_parse.go index 9693b4da..2d207add 100644 --- a/object/commit_parse.go +++ b/object/commit_parse.go @@ -5,11 +5,11 @@ import ( "errors" "fmt" - "codeberg.org/lindenii/furgit/oid" + "codeberg.org/lindenii/furgit/objectid" ) // ParseCommit decodes a commit object body. -func ParseCommit(body []byte, algo oid.Algorithm) (*Commit, error) { +func ParseCommit(body []byte, algo objectid.Algorithm) (*Commit, error) { c := new(Commit) i := 0 for i < len(body) { @@ -30,13 +30,13 @@ func ParseCommit(body []byte, algo oid.Algorithm) (*Commit, error) { switch string(key) { case "tree": - id, err := oid.ParseHex(algo, string(value)) + id, err := objectid.ParseHex(algo, string(value)) if err != nil { return nil, fmt.Errorf("object: commit: tree: %w", err) } c.Tree = id case "parent": - id, err := oid.ParseHex(algo, string(value)) + id, err := objectid.ParseHex(algo, string(value)) if err != nil { return nil, fmt.Errorf("object: commit: parent: %w", err) } -- cgit v1.3.1-10-gc9f91