Add godoc comments to exported symbols in pkg/cmd/pr
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
16c6500c82
commit
5de7a10080
36 changed files with 200 additions and 5 deletions
|
|
@ -8,11 +8,13 @@ import (
|
|||
|
||||
var _ GitConfigClient = &CachedBranchConfigGitConfigClient{}
|
||||
|
||||
// CachedBranchConfigGitConfigClient wraps a GitConfigClient to return a pre-fetched BranchConfig instead of querying git.
|
||||
type CachedBranchConfigGitConfigClient struct {
|
||||
CachedBranchConfig git.BranchConfig
|
||||
GitConfigClient
|
||||
}
|
||||
|
||||
// ReadBranchConfig returns the cached BranchConfig, ignoring the branch name argument.
|
||||
func (c CachedBranchConfigGitConfigClient) ReadBranchConfig(ctx context.Context, branchName string) (git.BranchConfig, error) {
|
||||
return c.CachedBranchConfig, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue