From 1d96ade0ba832ad80e266d511d6b355b2cbddc9f Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Sat, 1 Jul 2023 15:56:08 +0200 Subject: [PATCH] Remove StashWithMessage function It's identical to Stash(), so use that. --- pkg/integration/components/shell.go | 5 ----- 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().