aboutsummaryrefslogtreecommitdiff
path: root/obj_commit.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2025-11-16 00:00:00 +0000
committerGravatar Runxi Yu2025-11-16 00:00:00 +0000
commitd4242ecef77b6ce478101ce83d741326d4a67435 (patch)
treea36226cca2ec09fea00db4ec9a15a4f39f2f704b /obj_commit.go
parentFix tests using the wrong Serialize signatures (diff)
signature
Make ObjectType look like a pointer-receiver in the docs
Diffstat (limited to 'obj_commit.go')
-rw-r--r--obj_commit.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/obj_commit.go b/obj_commit.go
index 2b87322f..628a188a 100644
--- a/obj_commit.go
+++ b/obj_commit.go
@@ -18,7 +18,8 @@ type Commit struct {
}
// ObjectType allows Commit to satisfy the Object interface.
-func (*Commit) ObjectType() ObjectType {
+func (commit *Commit) ObjectType() ObjectType {
+ _ = commit
return ObjCommit
}