summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pkg/integration/tests/stash/stash.go5
-rw-r--r--test/integration_new/stash/stash/expected/repo/.git_keep/COMMIT_EDITMSG1
-rw-r--r--test/integration_new/stash/stash/expected/repo/.git_keep/FETCH_HEAD0
-rw-r--r--test/integration_new/stash/stash/expected/repo/.git_keep/HEAD1
-rw-r--r--test/integration_new/stash/stash/expected/repo/.git_keep/ORIG_HEAD1
-rw-r--r--test/integration_new/stash/stash/expected/repo/.git_keep/config12
-rw-r--r--test/integration_new/stash/stash/expected/repo/.git_keep/description1
-rw-r--r--test/integration_new/stash/stash/expected/repo/.git_keep/indexbin0 -> 65 bytes
-rw-r--r--test/integration_new/stash/stash/expected/repo/.git_keep/info/exclude6
-rw-r--r--test/integration_new/stash/stash/expected/repo/.git_keep/logs/HEAD2
-rw-r--r--test/integration_new/stash/stash/expected/repo/.git_keep/logs/refs/heads/master1
-rw-r--r--test/integration_new/stash/stash/expected/repo/.git_keep/logs/refs/stash1
-rw-r--r--test/integration_new/stash/stash/expected/repo/.git_keep/objects/4b/825dc642cb6eb9a060e54bf8d69288fbee4904bin0 -> 15 bytes
-rw-r--r--test/integration_new/stash/stash/expected/repo/.git_keep/objects/62/27ee90e6cf6047b510f13dc6cc976e2dd372ddbin0 -> 122 bytes
-rw-r--r--test/integration_new/stash/stash/expected/repo/.git_keep/objects/6b/584e8ece562ebffc15d38808cd6b98fc3d97eabin0 -> 22 bytes
-rw-r--r--test/integration_new/stash/stash/expected/repo/.git_keep/objects/9c/a683cf1ae1a37fb25ec24646acc0dc1db376e71
-rw-r--r--test/integration_new/stash/stash/expected/repo/.git_keep/objects/d9/1d06157bdc633d25f970b9cc54d0eb74fb850fbin0 -> 49 bytes
-rw-r--r--test/integration_new/stash/stash/expected/repo/.git_keep/objects/f3/30ace8ec625fc87fe24138f3c4d65e7e8d9b8cbin0 -> 168 bytes
-rw-r--r--test/integration_new/stash/stash/expected/repo/.git_keep/refs/heads/master1
-rw-r--r--test/integration_new/stash/stash/expected/repo/.git_keep/refs/stash1
20 files changed, 33 insertions, 1 deletions
diff --git a/pkg/integration/tests/stash/stash.go b/pkg/integration/tests/stash/stash.go
index 55095e42d..db9e13b78 100644
--- a/pkg/integration/tests/stash/stash.go
+++ b/pkg/integration/tests/stash/stash.go
@@ -19,7 +19,10 @@ var Stash = NewIntegrationTest(NewIntegrationTestArgs{
assert.StashCount(0)
input.PressKeys(keys.Files.ViewStashOptions)
- input.Confirm()
+ assert.InMenu()
+
+ input.PressKeys("a")
+ input.Type("stash name")
input.Confirm()
assert.StashCount(1)
diff --git a/test/integration_new/stash/stash/expected/repo/.git_keep/COMMIT_EDITMSG b/test/integration_new/stash/stash/expected/repo/.git_keep/COMMIT_EDITMSG
new file mode 100644
index 000000000..802607664
--- /dev/null
+++ b/test/integration_new/stash/stash/expected/repo/.git_keep/COMMIT_EDITMSG
@@ -0,0 +1 @@
+initial commit
diff --git a/test/integration_new/stash/stash/expected/repo/.git_keep/FETCH_HEAD b/test/integration_new/stash/stash/expected/repo/.git_keep/FETCH_HEAD
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/test/integration_new/stash/stash/expected/repo/.git_keep/FETCH_HEAD
diff --git a/test/integration_new/stash/stash/expected/repo/.git_keep/HEAD b/test/integration_new/stash/stash/expected/repo/.git_keep/HEAD
new file mode 100644
index 000000000..cb089cd89
--- /dev/null
+++ b/test/integration_new/stash/stash/expected/repo/.git_keep/HEAD
@@ -0,0 +1 @@
+ref: refs/heads/master
diff --git a/test/integration_new/stash/stash/expected/repo/.git_keep/ORIG_HEAD b/test/integration_new/stash/stash/expected/repo/.git_keep/ORIG_HEAD
new file mode 100644
index 000000000..bf1549f7e
--- /dev/null
+++ b/test/integration_new/stash/stash/expected/repo/.git_keep/ORIG_HEAD
@@ -0,0 +1 @@
+6227ee90e6cf6047b510f13dc6cc976e2dd372dd
diff --git a/test/integration_new/stash/stash/expected/repo/.git_keep/config b/test/integration_new/stash/stash/expected/repo/.git_keep/config
new file mode 100644
index 000000000..8a748ce32
--- /dev/null
+++ b/test/integration_new/stash/stash/expected/repo/.git_keep/config
@@ -0,0 +1,12 @@
+[core]
+ repositoryformatversion = 0
+ filemode = true
+ bare = false
+ logallrefupdates = true
+ ignorecase = true
+ precomposeunicode = true
+[user]
+ email = CI@example.com
+ name = CI
+[commit]
+ gpgSign = false
diff --git a/test/integration_new/stash/stash/expected/repo/.git_keep/description b/test/integration_new/stash/stash/expected/repo/.git_keep/description
new file mode 100644
index 000000000..498b267a8
--- /dev/null
+++ b/test/integration_new/stash/stash/expected/repo/.git_keep/description
@@ -0,0 +1 @@
+Unnamed repository; edit this file 'description' to name the repository.
diff --git a/test/integration_new/stash/stash/expected/repo/.git_keep/index b/test/integration_new/stash/stash/expected/repo/.git_keep/index
new file mode 100644
index 000000000..65d675154
--- /dev/null
+++ b/test/integration_new/stash/stash/expected/repo/.git_keep/index
Binary files differ
diff --git a/test/integration_new/stash/stash/expected/repo/.git_keep/info/exclude b/test/integration_new/stash/stash/expected/repo/.git_keep/info/exclude
new file mode 100644
index 000000000..a5196d1be
--- /dev/null
+++ b/test/integration_new/stash/stash/expected/repo/.git_keep/info/exclude
@@ -0,0 +1,6 @@
+# git ls-files --others --exclude-from=.git/info/exclude
+# Lines that start with '#' are comments.
+# For a project mostly in C, the following would be a good set of
+# exclude patterns (uncomment them if you want to use them):
+# *.[oa]
+# *~
diff --git a/test/integration_new/stash/stash/expected/repo/.git_keep/logs/HEAD b/test/integration_new/stash/stash/expected/repo/.git_keep/logs/HEAD
new file mode 100644
index 000000000..276b4169c
--- /dev/null
+++ b/test/integration_new/stash/stash/expected/repo/.git_keep/logs/HEAD
@@ -0,0 +1,2 @@
+0000000000000000000000000000000000000000 6227ee90e6cf6047b510f13dc6cc976e2dd372dd CI <CI@example.com> 1665104980 -0230 commit (initial): initial commit
+6227ee90e6cf6047b510f13dc6cc976e2dd372dd 6227ee90e6cf6047b510f13dc6cc976e2dd372dd CI <CI@example.com> 1665104985 -0230 reset: moving to HEAD
diff --git a/test/integration_new/stash/stash/expected/repo/.git_keep/logs/refs/heads/master b/test/integration_new/stash/stash/expected/repo/.git_keep/logs/refs/heads/master
new file mode 100644
index 000000000..b4cda7b51
--- /dev/null
+++ b/test/integration_new/stash/stash/expected/repo/.git_keep/logs/refs/heads/master
@@ -0,0 +1 @@
+0000000000000000000000000000000000000000 6227ee90e6cf6047b510f13dc6cc976e2dd372dd CI <CI@example.com> 1665104980 -0230 commit (initial): initial commit
diff --git a/test/integration_new/stash/stash/expected/repo/.git_keep/logs/refs/stash b/test/integration_new/stash/stash/expected/repo/.git_keep/logs/refs/stash
new file mode 100644
index 000000000..080ed95ff
--- /dev/null
+++ b/test/integration_new/stash/stash/expected/repo/.git_keep/logs/refs/stash
@@ -0,0 +1 @@
+0000000000000000000000000000000000000000 9ca683cf1ae1a37fb25ec24646acc0dc1db376e7 CI <CI@example.com> 1665104985 -0230 On master: stash name
diff --git a/test/integration_new/stash/stash/expected/repo/.git_keep/objects/4b/825dc642cb6eb9a060e54bf8d69288fbee4904 b/test/integration_new/stash/stash/expected/repo/.git_keep/objects/4b/825dc642cb6eb9a060e54bf8d69288fbee4904
new file mode 100644
index 000000000..adf64119a
--- /dev/null
+++ b/test/integration_new/stash/stash/expected/repo/.git_keep/objects/4b/825dc642cb6eb9a060e54bf8d69288fbee4904
Binary files differ
diff --git a/test/integration_new/stash/stash/expected/repo/.git_keep/objects/62/27ee90e6cf6047b510f13dc6cc976e2dd372dd b/test/integration_new/stash/stash/expected/repo/.git_keep/objects/62/27ee90e6cf6047b510f13dc6cc976e2dd372dd
new file mode 100644
index 000000000..498500cc1
--- /dev/null
+++ b/test/integration_new/stash/stash/expected/repo/.git_keep/objects/62/27ee90e6cf6047b510f13dc6cc976e2dd372dd
Binary files differ
diff --git a/test/integration_new/stash/stash/expected/repo/.git_keep/objects/6b/584e8ece562ebffc15d38808cd6b98fc3d97ea b/test/integration_new/stash/stash/expected/repo/.git_keep/objects/6b/584e8ece562ebffc15d38808cd6b98fc3d97ea
new file mode 100644
index 000000000..ec9764eae
--- /dev/null
+++ b/test/integration_new/stash/stash/expected/repo/.git_keep/objects/6b/584e8ece562ebffc15d38808cd6b98fc3d97ea
Binary files differ
diff --git a/test/integration_new/stash/stash/expected/repo/.git_keep/objects/9c/a683cf1ae1a37fb25ec24646acc0dc1db376e7 b/test/integration_new/stash/stash/expected/repo/.git_keep/objects/9c/a683cf1ae1a37fb25ec24646acc0dc1db376e7
new file mode 100644
index 000000000..229d54ce7
--- /dev/null
+++ b/test/integration_new/stash/stash/expected/repo/.git_keep/objects/9c/a683cf1ae1a37fb25ec24646acc0dc1db376e7
@@ -0,0 +1 @@
+xj1DSW$J2!\7HDwN|ոO3fBM"J&ַ$*j -: 1PfhER`RfѨ³ZbhjH\eAcM%ʒpzֿ![<W\.ӝ'_W @M \ No newline at end of file
diff --git a/test/integration_new/stash/stash/expected/repo/.git_keep/objects/d9/1d06157bdc633d25f970b9cc54d0eb74fb850f b/test/integration_new/stash/stash/expected/repo/.git_keep/objects/d9/1d06157bdc633d25f970b9cc54d0eb74fb850f
new file mode 100644
index 000000000..00c028c95
--- /dev/null
+++ b/test/integration_new/stash/stash/expected/repo/.git_keep/objects/d9/1d06157bdc633d25f970b9cc54d0eb74fb850f
Binary files differ
diff --git a/test/integration_new/stash/stash/expected/repo/.git_keep/objects/f3/30ace8ec625fc87fe24138f3c4d65e7e8d9b8c b/test/integration_new/stash/stash/expected/repo/.git_keep/objects/f3/30ace8ec625fc87fe24138f3c4d65e7e8d9b8c
new file mode 100644
index 000000000..c63423382
--- /dev/null
+++ b/test/integration_new/stash/stash/expected/repo/.git_keep/objects/f3/30ace8ec625fc87fe24138f3c4d65e7e8d9b8c
Binary files differ
diff --git a/test/integration_new/stash/stash/expected/repo/.git_keep/refs/heads/master b/test/integration_new/stash/stash/expected/repo/.git_keep/refs/heads/master
new file mode 100644
index 000000000..bf1549f7e
--- /dev/null
+++ b/test/integration_new/stash/stash/expected/repo/.git_keep/refs/heads/master
@@ -0,0 +1 @@
+6227ee90e6cf6047b510f13dc6cc976e2dd372dd
diff --git a/test/integration_new/stash/stash/expected/repo/.git_keep/refs/stash b/test/integration_new/stash/stash/expected/repo/.git_keep/refs/stash
new file mode 100644
index 000000000..c03c37c76
--- /dev/null
+++ b/test/integration_new/stash/stash/expected/repo/.git_keep/refs/stash
@@ -0,0 +1 @@
+9ca683cf1ae1a37fb25ec24646acc0dc1db376e7