1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-11-28 09:08:41 +02:00

Add CheckoutBranch and Merge helpers for integration tests

This commit is contained in:
Luka Markušić 2022-09-10 17:00:19 +02:00
parent 41f86f6535
commit 4c7d363959

View File

@ -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))
}