diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2023-07-01 15:56:08 +0200 |
---|---|---|
committer | Stefan Haller <stefan@haller-berlin.de> | 2023-07-10 15:09:17 +0200 |
commit | 1d96ade0ba832ad80e266d511d6b355b2cbddc9f (patch) | |
tree | 634b3361b3ce73f356cc56c271f3dec7406e8190 /pkg/integration | |
parent | 82b3803164395e34e0f57c0ce2930350adc578d1 (diff) |
Remove StashWithMessage function
It's identical to Stash(), so use that.
Diffstat (limited to 'pkg/integration')
-rw-r--r-- | pkg/integration/components/shell.go | 5 | ||||
-rw-r--r-- | pkg/integration/tests/stash/rename.go | 4 |
2 files changed, 2 insertions, 7 deletions
diff --git a/pkg/integration/components/shell.go b/pkg/integration/components/shell.go index cb21c0c01..6ff7dac34 100644 --- a/pkg/integration/components/shell.go +++ b/pkg/integration/components/shell.go @@ -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 diff --git a/pkg/integration/tests/stash/rename.go b/pkg/integration/tests/stash/rename.go index 9a079c9db..eb57fa654 100644 --- a/pkg/integration/tests/stash/rename.go +++ b/pkg/integration/tests/stash/rename.go @@ -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(). |