MCPcopy Index your code
hub / github.com/jesseduffield/lazygit / FetchRemote

Method FetchRemote

pkg/commands/git_commands/sync.go:127–133  ·  view source on GitHub ↗
(task gocui.Task, remoteName string)

Source from the content-addressed store, hash-verified

125}
126
127func (self *SyncCommands) FetchRemote(task gocui.Task, remoteName string) error {
128 cmdArgs := self.fetchCommandBuilder(false).
129 Arg(remoteName).
130 ToArgv()
131
132 return self.cmd.New(cmdArgs).PromptOnCredentialRequest(task).Run()
133}

Callers 1

fetchAndCheckoutMethod · 0.80

Calls 6

fetchCommandBuilderMethod · 0.95
ToArgvMethod · 0.80
ArgMethod · 0.80
RunMethod · 0.65
NewMethod · 0.65

Tested by

no test coverage detected