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:
parent
82b3803164
commit
1d96ade0ba
@ -196,11 +196,6 @@ func (self *Shell) CreateNCommitsStartingAt(n, startIndex int) *Shell {
|
||||
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 {
|
||||
self.RunCommand([]string{"git", "config", "--local", key, value})
|
||||
return self
|
||||
|
@ -14,9 +14,9 @@ var Rename = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
shell.
|
||||
EmptyCommit("blah").
|
||||
CreateFileAndAdd("file-1", "change to stash1").
|
||||
StashWithMessage("foo").
|
||||
Stash("foo").
|
||||
CreateFileAndAdd("file-2", "change to stash2").
|
||||
StashWithMessage("bar")
|
||||
Stash("bar")
|
||||
},
|
||||
Run: func(t *TestDriver, keys config.KeybindingConfig) {
|
||||
t.Views().Stash().
|
||||
|
Loading…
Reference in New Issue
Block a user