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:
parent
c70c8e84f8
commit
a2bdab2135
@ -50,16 +50,11 @@ func (self *SyncCommands) Push(opts PushOpts) error {
|
|||||||
|
|
||||||
type FetchOptions struct {
|
type FetchOptions struct {
|
||||||
Background bool
|
Background bool
|
||||||
RemoteName string
|
|
||||||
BranchName string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fetch fetch git repo
|
// Fetch fetch git repo
|
||||||
func (self *SyncCommands) Fetch(opts FetchOptions) error {
|
func (self *SyncCommands) Fetch(opts FetchOptions) error {
|
||||||
cmdArgs := NewGitCmd("fetch").
|
cmdArgs := NewGitCmd("fetch").ToArgv()
|
||||||
ArgIf(opts.RemoteName != "", opts.RemoteName).
|
|
||||||
ArgIf(opts.BranchName != "", opts.BranchName).
|
|
||||||
ToArgv()
|
|
||||||
|
|
||||||
cmdObj := self.cmd.New(cmdArgs)
|
cmdObj := self.cmd.New(cmdArgs)
|
||||||
if opts.Background {
|
if opts.Background {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user