mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 12:25:47 +02:00
Add CheckoutBranch and Merge helpers for integration tests
This commit is contained in:
parent
41f86f6535
commit
4c7d363959
1 changed files with 4 additions and 0 deletions
|
@ -63,6 +63,10 @@ func (s *Shell) Checkout(name string) *Shell {
|
|||
return s.RunCommand("git checkout " + name)
|
||||
}
|
||||
|
||||
func (s *Shell) Merge(name string) *Shell {
|
||||
return s.RunCommand("git merge --commit " + name)
|
||||
}
|
||||
|
||||
func (s *Shell) GitAdd(path string) *Shell {
|
||||
return s.RunCommand(fmt.Sprintf("git add \"%s\"", path))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue