1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-12-04 10:34:55 +02:00

Remove StashWithMessage function

It's identical to Stash(), so use that.
This commit is contained in:
Stefan Haller 2023-07-01 15:56:08 +02:00
parent 82b3803164
commit 1d96ade0ba
2 changed files with 2 additions and 7 deletions

View File

@ -196,11 +196,6 @@ func (self *Shell) CreateNCommitsStartingAt(n, startIndex int) *Shell {
return self return self
} }
func (self *Shell) StashWithMessage(message string) *Shell {
self.RunCommand([]string{"git", "stash", "-m", message})
return self
}
func (self *Shell) SetConfig(key string, value string) *Shell { func (self *Shell) SetConfig(key string, value string) *Shell {
self.RunCommand([]string{"git", "config", "--local", key, value}) self.RunCommand([]string{"git", "config", "--local", key, value})
return self return self

View File

@ -14,9 +14,9 @@ var Rename = NewIntegrationTest(NewIntegrationTestArgs{
shell. shell.
EmptyCommit("blah"). EmptyCommit("blah").
CreateFileAndAdd("file-1", "change to stash1"). CreateFileAndAdd("file-1", "change to stash1").
StashWithMessage("foo"). Stash("foo").
CreateFileAndAdd("file-2", "change to stash2"). CreateFileAndAdd("file-2", "change to stash2").
StashWithMessage("bar") Stash("bar")
}, },
Run: func(t *TestDriver, keys config.KeybindingConfig) { Run: func(t *TestDriver, keys config.KeybindingConfig) {
t.Views().Stash(). t.Views().Stash().