package opcode

import (
	"github.com/git-town/git-town/v12/src/git/gitdomain"
	"github.com/git-town/git-town/v12/src/vm/shared"
)

// FetchUpstream brings the Git history of the local repository
// up to speed with activities that happened in the upstream remote.
type FetchUpstream struct {
	Branch gitdomain.LocalBranchName
	undeclaredOpcodeMethods
}

func (self *FetchUpstream) Run(args shared.RunArgs) error {
	return args.Runner.Frontend.FetchUpstream(self.Branch)
}
