MCPcopy
hub / github.com/jesseduffield/lazygit / fetchCommandBuilder

Method fetchCommandBuilder

pkg/commands/git_commands/sync.go:57–63  ·  view source on GitHub ↗
(fetchAll bool)

Source from the content-addressed store, hash-verified

55}
56
57func (self *SyncCommands) fetchCommandBuilder(fetchAll bool) *GitCommandBuilder {
58 return NewGitCmd("fetch").
59 ArgIf(fetchAll, "--all").
60 // avoid writing to .git/FETCH_HEAD; this allows running a pull
61 // concurrently without getting errors
62 Arg("--no-write-fetch-head")
63}
64
65func (self *SyncCommands) FetchCmdObj(task gocui.Task) *oscommands.CmdObj {
66 cmdArgs := self.fetchCommandBuilder(self.UserConfig().Git.FetchAll).ToArgv()

Callers 4

FetchCmdObjMethod · 0.95
FetchBackgroundCmdObjMethod · 0.95
FastForwardMethod · 0.95
FetchRemoteMethod · 0.95

Calls 3

NewGitCmdFunction · 0.85
ArgMethod · 0.80
ArgIfMethod · 0.80

Tested by

no test coverage detected