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
This commit is contained in:
PeskyPotato 2024-07-05 12:02:23 +00:00 committed by Bjørn Erik Pedersen
parent 251a23ef76
commit 0ee2610d7c
4 changed files with 15 additions and 3 deletions

View file

@ -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,