MCPcopy Create free account
hub / github.com/cli/cli / newGitClient

Function newGitClient

pkg/cmd/factory/default.go:241–250  ·  view source on GitHub ↗
(f *cmdutil.Factory)

Source from the content-addressed store, hash-verified

239}
240
241func newGitClient(f *cmdutil.Factory) *git.Client {
242 io := f.IOStreams
243 client := &git.Client{
244 GhPath: f.ExecutablePath,
245 Stderr: io.ErrOut,
246 Stdin: io.In,
247 Stdout: io.Out,
248 }
249 return client
250}
251
252func newBrowser(f *cmdutil.Factory) browser.Browser {
253 io := f.IOStreams

Callers 2

TestNewGitClientFunction · 0.85
NewFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestNewGitClientFunction · 0.68