mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-15 00:15:32 +02:00
Rename PushBranch to PushBranchAndSetUpstream
It is unexpected that a function called PushBranch also sets the upstream branch; also, we want to add a PushBranch function in the next commit that doesn't.
This commit is contained in:
@ -194,7 +194,7 @@ func (self *Shell) CreateAnnotatedTag(name string, message string, ref string) *
|
||||
return self.RunCommand([]string{"git", "tag", "-a", name, "-m", message, ref})
|
||||
}
|
||||
|
||||
func (self *Shell) PushBranch(upstream, branch string) *Shell {
|
||||
func (self *Shell) PushBranchAndSetUpstream(upstream, branch string) *Shell {
|
||||
return self.RunCommand([]string{"git", "push", "--set-upstream", upstream, branch})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user