aboutsummaryrefslogtreecommitdiffhomepage
path: root/source
diff options
context:
space:
mode:
authorPeskyPotato <[email protected]>2024-07-05 12:02:23 +0000
committerBjørn Erik Pedersen <[email protected]>2024-07-06 16:28:11 +0200
commit0ee2610d7c67bad1c3d8de579c6aa368ebcf761e (patch)
tree42c49ac8db17f9278225af3b7517984fdfa65aad /source
parent251a23ef76e4fcee4664a5e7bfdac5cba490b6cb (diff)
downloadhugo-0ee2610d7c67bad1c3d8de579c6aa368ebcf761e.tar.gz
hugo-0ee2610d7c67bad1c3d8de579c6aa368ebcf761e.zip
source: Expose GitInfo Body
Updated bep/gitmap to v1.4.0, to get commit message's Body. Added Body to GitInfo struct. Docs upated with commit body example. Fixes #10905
Diffstat (limited to 'source')
-rw-r--r--source/fileInfo.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/fileInfo.go b/source/fileInfo.go
index efe88a2c1..3a95a0593 100644
--- a/source/fileInfo.go
+++ b/source/fileInfo.go
@@ -175,6 +175,8 @@ type GitInfo struct {
AuthorDate time.Time `json:"authorDate"`
// The commit date.
CommitDate time.Time `json:"commitDate"`
+ // The commit message's body.
+ Body string `json:"body"`
}
// IsZero returns true if the GitInfo is empty,