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

Function newGitClient

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

Source from the content-addressed store, hash-verified

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

Callers 2

TestNewGitClientFunction · 0.85
NewFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestNewGitClientFunction · 0.68