From 977114819521563458c40a8d1aa35c72b23d5395 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 20 Feb 2026 22:16:08 +0800 Subject: object: Use objecttype instead of doing object types ourself --- object/commit.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'object/commit.go') diff --git a/object/commit.go b/object/commit.go index 0183ff02..92b7fcdc 100644 --- a/object/commit.go +++ b/object/commit.go @@ -1,6 +1,9 @@ package object -import "codeberg.org/lindenii/furgit/oid" +import ( + "codeberg.org/lindenii/furgit/objecttype" + "codeberg.org/lindenii/furgit/oid" +) // Commit represents a Git commit object. type Commit struct { @@ -14,7 +17,7 @@ type Commit struct { } // ObjectType returns TypeCommit. -func (commit *Commit) ObjectType() Type { +func (commit *Commit) ObjectType() objecttype.Type { _ = commit - return TypeCommit + return objecttype.TypeCommit } -- cgit v1.3.1-10-gc9f91