1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

prompt to set upstream when pulling on untracked branch

prompt to set upstream when pulling on untracked branch
This commit is contained in:
Jesse Duffield
2019-11-13 21:16:24 +11:00
parent b662362570
commit f43ba728e3
5 changed files with 37 additions and 5 deletions

View File

@ -1052,3 +1052,7 @@ func (c *GitCommand) BeginInteractiveRebaseForCommit(commits []*Commit, commitIn
return nil
}
func (c *GitCommand) SetUpstreamBranch(upstream string) error {
return c.OSCommand.RunCommand(fmt.Sprintf("git branch -u %s", upstream))
}