diff options
| author | 2026-02-20 22:16:08 +0800 | |
|---|---|---|
| committer | 2026-02-20 22:16:08 +0800 | |
| commit | 977114819521563458c40a8d1aa35c72b23d5395 (patch) | |
| tree | 5803d68f23976a114c1e7f97d813268643c52bab /object/commit.go | |
| parent | objecttype: Factor out object types (diff) | |
| signature | No signature | |
object: Use objecttype instead of doing object types ourself
Diffstat (limited to 'object/commit.go')
| -rw-r--r-- | object/commit.go | 9 |
1 files changed, 6 insertions, 3 deletions
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 } |
