mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 04:15:48 +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:
parent
c70c8e84f8
commit
a2bdab2135
1 changed files with 1 additions and 6 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue