1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-03-19 21:28:28 +02:00

Remove unused fetch options RemoteName and BranchName

These were never used, since there are separate functions for fetching a remote
and for fast-forwarding a branch.
This commit is contained in:
Stefan Haller 2023-05-31 14:09:23 +02:00
parent c70c8e84f8
commit a2bdab2135

View File

@ -50,16 +50,11 @@ func (self *SyncCommands) Push(opts PushOpts) error {
type FetchOptions struct {
Background bool
RemoteName string
BranchName string
}
// Fetch fetch git repo
func (self *SyncCommands) Fetch(opts FetchOptions) error {
cmdArgs := NewGitCmd("fetch").
ArgIf(opts.RemoteName != "", opts.RemoteName).
ArgIf(opts.BranchName != "", opts.BranchName).
ToArgv()
cmdArgs := NewGitCmd("fetch").ToArgv()
cmdObj := self.cmd.New(cmdArgs)
if opts.Background {