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
commitec7ddd9b4e4067a046ea4d9b35fa2601b58823ba (patch)
tree292b3e87daff0caee8333dcedb2987581cf664d9 /obj_commit.go
parentUnexport Repository.HashSize (diff)
signature
Rename ObjType enum
Diffstat (limited to 'obj_commit.go')
-rw-r--r--obj_commit.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/obj_commit.go b/obj_commit.go
index 628a188a..f1616fba 100644
--- a/obj_commit.go
+++ b/obj_commit.go
@@ -20,7 +20,7 @@ type Commit struct {
// ObjectType allows Commit to satisfy the Object interface.
func (commit *Commit) ObjectType() ObjectType {
_ = commit
- return ObjCommit
+ return ObjectTypeCommit
}
func parseCommit(id Hash, body []byte, repo *Repository) (*Commit, error) {
@@ -124,7 +124,7 @@ func (commit *Commit) Serialize() ([]byte, error) {
if err != nil {
return nil, err
}
- header, err := headerForType(ObjCommit, body)
+ header, err := headerForType(ObjectTypeCommit, body)
if err != nil {
return nil, err
}