aboutsummaryrefslogtreecommitdiff
path: root/ident.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2025-11-16 00:00:00 +0000
committerGravatar Runxi Yu2025-11-16 00:00:00 +0000
commit503f2f1bbc69be553d04c621c7ec33931cc1f57d (patch)
tree289b2ea2dc589d6ce7efc3e44966eabb6739d3f2 /ident.go
parentREADME: benmarking -> test (diff)
signature
Add a little bit more of documentation
Diffstat (limited to 'ident.go')
-rw-r--r--ident.go11
1 files changed, 8 insertions, 3 deletions
diff --git a/ident.go b/ident.go
index b5cb38b2..50676a45 100644
--- a/ident.go
+++ b/ident.go
@@ -12,9 +12,14 @@ import (
// Ident represents a Git identity (author/committer/tagger).
type Ident struct {
- Name []byte
- Email []byte
- WhenUnix int64
+ // Name represents the person's name.
+ Name []byte
+ // Email represents the person's email.
+ Email []byte
+ // WhenUnix represents the timestamp as a Unix time.
+ // This value is in UTC.
+ WhenUnix int64
+ // The timezone offset in minutes.
OffsetMinutes int32
}