MCPcopy Index your code
hub / github.com/cli/cli / stubGitConfigClient

Struct stubGitConfigClient

pkg/cmd/pr/shared/finder_test.go:964–969  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

962}
963
964type stubGitConfigClient struct {
965 readBranchConfigFn func(ctx context.Context, branchName string) (git.BranchConfig, error)
966 pushDefaultFn func(ctx context.Context) (git.PushDefault, error)
967 remotePushDefaultFn func(ctx context.Context) (string, error)
968 pushRevisionFn func(ctx context.Context, branchName string) (git.RemoteTrackingRef, error)
969}
970
971func (s stubGitConfigClient) ReadBranchConfig(ctx context.Context, branchName string) (git.BranchConfig, error) {
972 if s.readBranchConfigFn == nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected