aboutsummaryrefslogtreecommitdiff
path: root/object/commit_parse.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-02-22 21:51:36 +0800
committerGravatar Runxi Yu2026-02-22 21:51:36 +0800
commit3a7df704f3a48015c898ea7cb694359f5b326515 (patch)
treece8a4254b704e25d0a34a7d750bf7ca040d5ca3e /object/commit_parse.go
parent*: Fix the broken comments for overescaping that python script (diff)
signatureNo signature
object: Rename ident to signature v0.1.38
Diffstat (limited to 'object/commit_parse.go')
-rw-r--r--object/commit_parse.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/object/commit_parse.go b/object/commit_parse.go
index 2d207add..ae1b2559 100644
--- a/object/commit_parse.go
+++ b/object/commit_parse.go
@@ -42,13 +42,13 @@ func ParseCommit(body []byte, algo objectid.Algorithm) (*Commit, error) {
}
c.Parents = append(c.Parents, id)
case "author":
- idt, err := ParseIdent(value)
+ idt, err := ParseSignature(value)
if err != nil {
return nil, fmt.Errorf("object: commit: author: %w", err)
}
c.Author = *idt
case "committer":
- idt, err := ParseIdent(value)
+ idt, err := ParseSignature(value)
if err != nil {
return nil, fmt.Errorf("object: commit: committer: %w", err)
}