Update GitInfo.md

This commit is contained in:
Bjørn Erik Pedersen 2023-12-18 09:42:00 +01:00 committed by GitHub
parent 3484414916
commit 71aa7d8abf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,6 +61,15 @@ AuthorDate
{{ end }}
```
CommitDate
: (`time.Time`) The commit date.
```go-html-template
{{ with .GitInfo }}
{{ .CommitDate.Format "2006-01-02" }} → 2023-10-09
{{ end }}
```
AuthorEmail
: (`string`) The author's email address, respecting [gitmailmap].