mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-12 21:05: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 {
|
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…
Add table
Add a link
Reference in a new issue