mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
Remove the internal GitInfo type and make Page.GitInf() return a pointer
See #5693
This commit is contained in:
@@ -135,7 +135,7 @@ type GetPageProvider interface {
|
||||
// GitInfoProvider provides Git info.
|
||||
type GitInfoProvider interface {
|
||||
// GitInfo returns the Git info for this object.
|
||||
GitInfo() source.GitInfo
|
||||
GitInfo() *source.GitInfo
|
||||
// CodeOwners returns the code owners for this object.
|
||||
CodeOwners() []string
|
||||
}
|
||||
|
@@ -178,8 +178,8 @@ func (p *nopPage) GetTerms(taxonomy string) Pages {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *nopPage) GitInfo() source.GitInfo {
|
||||
return source.GitInfo{}
|
||||
func (p *nopPage) GitInfo() *source.GitInfo {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *nopPage) CodeOwners() []string {
|
||||
|
@@ -225,8 +225,8 @@ func (p *testPage) GetInternalRelatedDocsHandler() *RelatedDocsHandler {
|
||||
return relatedDocsHandler
|
||||
}
|
||||
|
||||
func (p *testPage) GitInfo() source.GitInfo {
|
||||
return source.GitInfo{}
|
||||
func (p *testPage) GitInfo() *source.GitInfo {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *testPage) CodeOwners() []string {
|
||||
|
Reference in New Issue
Block a user