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

Method FastForward

pkg/commands/git_commands/sync.go:113–125  ·  view source on GitHub ↗
(
	task gocui.Task,
	branchName string,
	remoteName string,
	remoteBranchName string,
)

Source from the content-addressed store, hash-verified

111}
112
113func (self *SyncCommands) FastForward(
114 task gocui.Task,
115 branchName string,
116 remoteName string,
117 remoteBranchName string,
118) error {
119 cmdArgs := self.fetchCommandBuilder(false).
120 Arg(remoteName).
121 Arg("refs/heads/" + remoteBranchName + ":" + branchName).
122 ToArgv()
123
124 return self.cmd.New(cmdArgs).PromptOnCredentialRequest(task).Run()
125}
126
127func (self *SyncCommands) FetchRemote(task gocui.Task, remoteName string) error {
128 cmdArgs := self.fetchCommandBuilder(false).

Callers 1

fastForwardMethod · 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