diff options
author | PeskyPotato <[email protected]> | 2024-07-05 12:02:23 +0000 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-07-06 16:28:11 +0200 |
commit | 0ee2610d7c67bad1c3d8de579c6aa368ebcf761e (patch) | |
tree | 42c49ac8db17f9278225af3b7517984fdfa65aad /source/fileInfo.go | |
parent | 251a23ef76e4fcee4664a5e7bfdac5cba490b6cb (diff) | |
download | hugo-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/fileInfo.go')
-rw-r--r-- | source/fileInfo.go | 2 |
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, |