mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-28 16:02:01 +03:00
Add integration tests
This commit is contained in:
@ -53,7 +53,7 @@ func (self *StashCommands) StashAndKeepIndex(message string) error {
|
||||
}
|
||||
|
||||
func (self *StashCommands) StashUnstagedChanges(message string) error {
|
||||
if err := self.cmd.New("git commit -m \"WIP\"").Run(); err != nil {
|
||||
if err := self.cmd.New("git commit --no-verify -m \"[lazygit] stashing unstaged changes\"").Run(); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := self.Save(message); err != nil {
|
||||
|
@ -1 +1 @@
|
||||
f348ff60bdbb3695f2f519db6bc115b1b8d50886
|
||||
6b1f87e5b74cd77d755d213e0850f4de02b3cdce
|
||||
|
@ -3,8 +3,6 @@
|
||||
filemode = true
|
||||
bare = false
|
||||
logallrefupdates = true
|
||||
ignorecase = true
|
||||
precomposeunicode = true
|
||||
[user]
|
||||
email = CI@example.com
|
||||
name = CI
|
||||
|
Binary file not shown.
@ -4,4 +4,3 @@
|
||||
# exclude patterns (uncomment them if you want to use them):
|
||||
# *.[oa]
|
||||
# *~
|
||||
.DS_Store
|
||||
|
@ -1,6 +1,5 @@
|
||||
0000000000000000000000000000000000000000 a7dde526f2e93ffa08897fbfca2c98ce40a8fa5b CI <CI@example.com> 1643011553 +1100 commit (initial): file0
|
||||
a7dde526f2e93ffa08897fbfca2c98ce40a8fa5b 4cc838ea1466afc5be1d3bc3e7a937641ec84d7d CI <CI@example.com> 1643011553 +1100 commit: file1
|
||||
4cc838ea1466afc5be1d3bc3e7a937641ec84d7d f348ff60bdbb3695f2f519db6bc115b1b8d50886 CI <CI@example.com> 1643011553 +1100 commit: file2
|
||||
f348ff60bdbb3695f2f519db6bc115b1b8d50886 f348ff60bdbb3695f2f519db6bc115b1b8d50886 CI <CI@example.com> 1643011556 +1100 reset: moving to HEAD
|
||||
f348ff60bdbb3695f2f519db6bc115b1b8d50886 f348ff60bdbb3695f2f519db6bc115b1b8d50886 CI <CI@example.com> 1643011556 +1100 reset: moving to HEAD
|
||||
f348ff60bdbb3695f2f519db6bc115b1b8d50886 f348ff60bdbb3695f2f519db6bc115b1b8d50886 CI <CI@example.com> 1643011558 +1100 reset: moving to HEAD
|
||||
0000000000000000000000000000000000000000 8c3123f6f4cee663b57398072df088c6f2dfeb9b CI <CI@example.com> 1650002552 +0200 commit (initial): file0
|
||||
8c3123f6f4cee663b57398072df088c6f2dfeb9b f7114350b59290905115d7918efe144eb2c62a76 CI <CI@example.com> 1650002552 +0200 commit: file1
|
||||
f7114350b59290905115d7918efe144eb2c62a76 6b1f87e5b74cd77d755d213e0850f4de02b3cdce CI <CI@example.com> 1650002552 +0200 commit: file2
|
||||
6b1f87e5b74cd77d755d213e0850f4de02b3cdce 6b1f87e5b74cd77d755d213e0850f4de02b3cdce CI <CI@example.com> 1650002559 +0200 reset: moving to HEAD
|
||||
6b1f87e5b74cd77d755d213e0850f4de02b3cdce 6b1f87e5b74cd77d755d213e0850f4de02b3cdce CI <CI@example.com> 1650002567 +0200 reset: moving to HEAD
|
||||
|
@ -1,3 +1,3 @@
|
||||
0000000000000000000000000000000000000000 a7dde526f2e93ffa08897fbfca2c98ce40a8fa5b CI <CI@example.com> 1643011553 +1100 commit (initial): file0
|
||||
a7dde526f2e93ffa08897fbfca2c98ce40a8fa5b 4cc838ea1466afc5be1d3bc3e7a937641ec84d7d CI <CI@example.com> 1643011553 +1100 commit: file1
|
||||
4cc838ea1466afc5be1d3bc3e7a937641ec84d7d f348ff60bdbb3695f2f519db6bc115b1b8d50886 CI <CI@example.com> 1643011553 +1100 commit: file2
|
||||
0000000000000000000000000000000000000000 8c3123f6f4cee663b57398072df088c6f2dfeb9b CI <CI@example.com> 1650002552 +0200 commit (initial): file0
|
||||
8c3123f6f4cee663b57398072df088c6f2dfeb9b f7114350b59290905115d7918efe144eb2c62a76 CI <CI@example.com> 1650002552 +0200 commit: file1
|
||||
f7114350b59290905115d7918efe144eb2c62a76 6b1f87e5b74cd77d755d213e0850f4de02b3cdce CI <CI@example.com> 1650002552 +0200 commit: file2
|
||||
|
@ -1,2 +1 @@
|
||||
0000000000000000000000000000000000000000 e09b4dfcd66bfa1c81feeaf67e04d55368a2b065 CI <CI@example.com> 1643011556 +1100 On master: asd
|
||||
e09b4dfcd66bfa1c81feeaf67e04d55368a2b065 2efac8148440778cbddcd80ac7477981277dcffe CI <CI@example.com> 1643011558 +1100 On master: asd
|
||||
0000000000000000000000000000000000000000 be485112173592dea7b39c7efc3a6f52f43b71b9 CI <CI@example.com> 1650002559 +0200 On master: asd
|
||||
|
Binary file not shown.
@ -1 +0,0 @@
|
||||
x<01><>Aj1<0C><><EFBFBD><EFBFBD><14><07><><EFBFBD>4v)%<25>UV=<3D>$˴Pg<50>ą<1E><>t<EFBFBD><74><EFBFBD><EFBFBD><EFBFBD>g{<7B><>b<>O<EFBFBD>p<EFBFBD><70><EFBFBD>F[`<60>X,<2C>`L
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,2 @@
|
||||
x<01><>K
|
||||
1D]<5D><14><17><>I<EFBFBD><49><EFBFBD><08><F>0<>a<EFBFBD><61><EFBFBD><EFBFBD>ƽۢ<C6BD><DBA2>K<EFBFBD>ֹ<EFBFBD>Ѽ<EFBFBD><D1BC>x<>X\r6K0<4B>68o%<10>#<23>cd-ev<65><76>5l<35>tpQ<17>B<EFBFBD>m<EFBFBD>̙<EFBFBD><CC99>ѓ<EFBFBD>',<03>&N)'Q<><51>m<><6D>η<>U><3E><>O9<4F>V/<2F>!<21>!ǰ<>q<EFBFBD>F:<3A><><EFBFBD>YW<59><57><EFBFBD>m<>^cu<63>YA<59><41>b<EFBFBD><17>aA<61>
|
Binary file not shown.
@ -0,0 +1,2 @@
|
||||
x<01><><EFBFBD>
|
||||
<EFBFBD>0E]<5D>+f/<2F>$<24>c*"BW<42><57><&X0M<30><11><>f<EFBFBD><66><EFBFBD><EFBFBD><EFBFBD><EFBFBD><C289><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>vf<76>6<EFBFBD>H8<48><38>s"<22>b<07>!<07>I<EFBFBD>@<40><>HZ<48><5A><EFBFBD><EFBFBD>kd&Ǧ<>19<31><39>1IɁ<49>f<>Ub<>,<2C><>=<3D><0E><0C>i~<7E><><EFBFBD><EFBFBD><EFBFBD>K<EFBFBD><4B><0E>DTƌpF<70>(:<3A>Q<EFBFBD><51><EFBFBD>Ų&><3E><>P<EFBFBD><50><EFBFBD><EFBFBD><EFBFBD>*<2A>ˋ<EFBFBD><CB8B><01>Bf
|
@ -0,0 +1,3 @@
|
||||
x<01><>A
|
||||
<EFBFBD>0Fa<46>9<EFBFBD><39><05><><EFBFBD>Ԁ<EFBFBD><D480>U<EFBFBD><55>4<34><7F>)z<><7A>n<1F><>պt<D5BA><74><EFBFBD><EFBFBD>dq<64>R!'<27><1F><05><><EFBFBD><16><><EFBFBD>hP<><7F>6'z<><7A>{<7B><><15><><EFBFBD>Y<><59>Y<EFBFBD><13><>0<EFBFBD><30><EFBFBD><EFBFBD><EFBFBD>?<3F>)<29>
|
||||
6֒+<2B>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
||||
f348ff60bdbb3695f2f519db6bc115b1b8d50886
|
||||
6b1f87e5b74cd77d755d213e0850f4de02b3cdce
|
||||
|
@ -1 +1 @@
|
||||
2efac8148440778cbddcd80ac7477981277dcffe
|
||||
be485112173592dea7b39c7efc3a6f52f43b71b9
|
||||
|
@ -1 +1 @@
|
||||
test2
|
||||
hello there
|
||||
|
1
test/integration/stash/expected/repo/file3
Normal file
1
test/integration/stash/expected/repo/file3
Normal file
@ -0,0 +1 @@
|
||||
hello there
|
@ -1 +1 @@
|
||||
{"KeyEvents":[{"Timestamp":809,"Mod":0,"Key":256,"Ch":32},{"Timestamp":1369,"Mod":0,"Key":256,"Ch":83},{"Timestamp":1713,"Mod":0,"Key":258,"Ch":0},{"Timestamp":2087,"Mod":0,"Key":13,"Ch":13},{"Timestamp":2376,"Mod":0,"Key":256,"Ch":97},{"Timestamp":2440,"Mod":0,"Key":256,"Ch":115},{"Timestamp":2512,"Mod":0,"Key":256,"Ch":100},{"Timestamp":2793,"Mod":0,"Key":13,"Ch":13},{"Timestamp":3498,"Mod":0,"Key":258,"Ch":0},{"Timestamp":4113,"Mod":0,"Key":256,"Ch":32},{"Timestamp":4785,"Mod":0,"Key":256,"Ch":115},{"Timestamp":5145,"Mod":0,"Key":256,"Ch":97},{"Timestamp":5183,"Mod":0,"Key":256,"Ch":115},{"Timestamp":5249,"Mod":0,"Key":256,"Ch":100},{"Timestamp":5609,"Mod":0,"Key":13,"Ch":13},{"Timestamp":6216,"Mod":0,"Key":259,"Ch":0},{"Timestamp":6457,"Mod":0,"Key":259,"Ch":0},{"Timestamp":6728,"Mod":0,"Key":259,"Ch":0},{"Timestamp":7098,"Mod":0,"Key":258,"Ch":0},{"Timestamp":7408,"Mod":0,"Key":256,"Ch":32},{"Timestamp":8080,"Mod":0,"Key":13,"Ch":13},{"Timestamp":8752,"Mod":0,"Key":260,"Ch":0},{"Timestamp":8952,"Mod":0,"Key":260,"Ch":0},{"Timestamp":9145,"Mod":0,"Key":260,"Ch":0},{"Timestamp":9904,"Mod":0,"Key":256,"Ch":113}],"ResizeEvents":[{"Timestamp":0,"Width":272,"Height":74}]}
|
||||
{"KeyEvents":[{"Timestamp":1303,"Mod":0,"Key":256,"Ch":32},{"Timestamp":1922,"Mod":0,"Key":256,"Ch":83},{"Timestamp":5480,"Mod":0,"Key":13,"Ch":13},{"Timestamp":6417,"Mod":0,"Key":256,"Ch":97},{"Timestamp":6506,"Mod":0,"Key":256,"Ch":115},{"Timestamp":6549,"Mod":0,"Key":256,"Ch":100},{"Timestamp":6874,"Mod":0,"Key":13,"Ch":13},{"Timestamp":7610,"Mod":0,"Key":256,"Ch":53},{"Timestamp":9010,"Mod":0,"Key":256,"Ch":32},{"Timestamp":10032,"Mod":0,"Key":13,"Ch":13},{"Timestamp":10900,"Mod":0,"Key":256,"Ch":50},{"Timestamp":11662,"Mod":0,"Key":256,"Ch":107},{"Timestamp":12360,"Mod":0,"Key":256,"Ch":32},{"Timestamp":12902,"Mod":0,"Key":256,"Ch":115},{"Timestamp":13687,"Mod":0,"Key":256,"Ch":97},{"Timestamp":13772,"Mod":0,"Key":256,"Ch":115},{"Timestamp":13837,"Mod":0,"Key":256,"Ch":100},{"Timestamp":14294,"Mod":0,"Key":13,"Ch":13},{"Timestamp":15489,"Mod":0,"Key":256,"Ch":53},{"Timestamp":16960,"Mod":0,"Key":256,"Ch":103},{"Timestamp":17726,"Mod":0,"Key":13,"Ch":13},{"Timestamp":18592,"Mod":0,"Key":256,"Ch":50},{"Timestamp":19603,"Mod":0,"Key":256,"Ch":113}],"ResizeEvents":[{"Timestamp":0,"Width":239,"Height":56}]}
|
@ -0,0 +1 @@
|
||||
file2
|
@ -0,0 +1 @@
|
||||
ref: refs/heads/master
|
@ -0,0 +1 @@
|
||||
8fa874178500f99d69f649ff9128f3d1b62369a0
|
@ -0,0 +1,8 @@
|
||||
[core]
|
||||
repositoryformatversion = 0
|
||||
filemode = true
|
||||
bare = false
|
||||
logallrefupdates = true
|
||||
[user]
|
||||
email = CI@example.com
|
||||
name = CI
|
@ -0,0 +1 @@
|
||||
Unnamed repository; edit this file 'description' to name the repository.
|
BIN
test/integration/stashAllChanges/expected/repo/.git_keep/index
Normal file
BIN
test/integration/stashAllChanges/expected/repo/.git_keep/index
Normal file
Binary file not shown.
@ -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]
|
||||
# *~
|
@ -0,0 +1,6 @@
|
||||
0000000000000000000000000000000000000000 29e5ddcfe80c21ef3d9df877d1173d8d1f56dce7 CI <CI@example.com> 1650002283 +0200 commit (initial): file0
|
||||
29e5ddcfe80c21ef3d9df877d1173d8d1f56dce7 624317ac2731648d4b0e30068dd35aca2a0b4791 CI <CI@example.com> 1650002283 +0200 commit: file1
|
||||
624317ac2731648d4b0e30068dd35aca2a0b4791 8fa874178500f99d69f649ff9128f3d1b62369a0 CI <CI@example.com> 1650002283 +0200 commit: file2
|
||||
8fa874178500f99d69f649ff9128f3d1b62369a0 8fa874178500f99d69f649ff9128f3d1b62369a0 CI <CI@example.com> 1650002287 +0200 reset: moving to HEAD
|
||||
8fa874178500f99d69f649ff9128f3d1b62369a0 8fa874178500f99d69f649ff9128f3d1b62369a0 CI <CI@example.com> 1650002295 +0200 reset: moving to HEAD
|
||||
8fa874178500f99d69f649ff9128f3d1b62369a0 8fa874178500f99d69f649ff9128f3d1b62369a0 CI <CI@example.com> 1650002303 +0200 reset: moving to HEAD
|
@ -0,0 +1,3 @@
|
||||
0000000000000000000000000000000000000000 29e5ddcfe80c21ef3d9df877d1173d8d1f56dce7 CI <CI@example.com> 1650002283 +0200 commit (initial): file0
|
||||
29e5ddcfe80c21ef3d9df877d1173d8d1f56dce7 624317ac2731648d4b0e30068dd35aca2a0b4791 CI <CI@example.com> 1650002283 +0200 commit: file1
|
||||
624317ac2731648d4b0e30068dd35aca2a0b4791 8fa874178500f99d69f649ff9128f3d1b62369a0 CI <CI@example.com> 1650002283 +0200 commit: file2
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,3 @@
|
||||
x<01><>A
|
||||
<EFBFBD>0F<><46>s<EFBFBD><73><17>d<1C><>R
|
||||
<EFBFBD><Fb<46>P<EFBFBD><50>")x|=B<><42><0F>RKYY<>[<5B><01><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>O<EFBFBD><4F><EFBFBD><0B><Ƭ<>%<25>,<1E>Uń_<C584>ԝ<EFBFBD><D49D><EFBFBD><EFBFBD><EFBFBD><EFBFBD><11>w<EFBFBD>c<EFBFBD><63>E<EFBFBD><45><EFBFBD>,2vtga6W<36>&
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,2 @@
|
||||
x<01><>A
|
||||
<EFBFBD> E<><45><14>/<2F>q<EFBFBD>QK)<29><>r<13>b<0C><><1C><><EFBFBD><EFBFBD>n<1F><><EFBFBD>XK<58><1A><><EFBFBD><EFBFBD><EFBFBD><04>
|
@ -0,0 +1,3 @@
|
||||
x<01>ϻJA<10>a<EFBFBD>y<EFBFBD><79><05><>{<7B><><EFBFBD><EFBFBD>F>CMw+L<>,3-<2D><>vbnz<6E><7A><EFBFBD><EFBFBD><D7BD>.<2E><>q<EFBFBD>B<EFBFBD>j,<2C><><EFBFBD><EFBFBD>V<EFBFBD><56>EuAW<41>$M<><4D>|#ü<<3C><><EFBFBD><EFBFBD>bRr<52>\"<22>1<EFBFBD>Ė<02>1<EFBFBD>b<EFBFBD><62><EFBFBD><EFBFBD>Ă<C482>U<><55><EFBFBD><EFBFBD>JE<4A><07><>r6<72><36>5(<28>F5<46><35>|<7C><>~<7E><>
|
||||
o<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Hl<EFBFBD>R<EFBFBD><EFBFBD><0E><>:W2<<3C>C\<5C>:#<23><><EFBFBD>/<2F>w<EFBFBD>rN<72>
|
||||
<EFBFBD><EFBFBD><EFBFBD><06>m<EFBFBD><6D><EFBFBD>Mq
|
@ -0,0 +1 @@
|
||||
x<01><><EFBFBD>J1`<60><><14><0B><>3m#"<><C29E>3<EFBFBD>m<EFBFBD>,lw<6C><77><EFBFBD>><3E><><EFBFBD><EFBFBD>[<5B><><EFBFBD>R<7F><52>.(<28>C<EFBFBD>Ua)j,<2C><12>ǚؘ<16>Y<EFBFBD>E'UK<0E>:<3A>8<EFBFBD>e<EFBFBD>[<5B>d<EFBFBD><64><EFBFBD>bZ<10><><06>0<EFBFBD>;J6h<0E><0B><><EFBFBD><EFBFBD> ["<22>D<EFBFBD>xTV<54><56>B<EFBFBD><42>)<1A><><EFBFBD>g7<67>g_<67>Ngx9<78><39><EFBFBD>[<5B><><EFBFBD>Oek<65><6B><EFBFBD>C<><43><EFBFBD> q<1A>x<EFBFBD><78>?<3F><>~<7E>&<26><><EFBFBD>pt9V<39><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>4hP<68>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,2 @@
|
||||
x+)JMU03c040031QH<51><48>I5`<60><10><><EFBFBD><EFBFBD><EFBFBD>ֶw<D6B6><77><EFBFBD>w.<2E><>h<EFBFBD>T<EFBFBD>[H
|
||||
<19><>y<EFBFBD>W5<57>Ɨ<EFBFBD><C697>(<28>|<7C>^-<2D>W(x9
|
@ -0,0 +1 @@
|
||||
x<01>ϻJA<10>a<EFBFBD>y<EFBFBD><79>鮮<><E9AEAE>ZD<5A><44>6<EFBFBD><19>o<EFBFBD><6F>=<3D>̴<EFBFBD>o<EFBFBD>$榇^{<1F>Lc<>P<>f<EFBFBD><66><02>,NQ<4E><51>p%-aVL<56>Y3<15><><EFBFBD><EFBFBD>e<EFBFBD>4<EFBFBD><34><EFBFBD>,ѹ<>ZX<1B><><EFBFBD><1E><><EFBFBD>c`5<><35>9;͒HEH<45><48><EFBFBD>)I<><49><1B><>1<EFBFBD>8<EFBFBD>d<EFBFBD><64><EFBFBD>np<6E><70><EFBFBD><EFBFBD><EFBFBD>Z<EFBFBD><5A><EFBFBD>o<EFBFBD>)<29><><gQ#<:tn:<3A>#b<><EFBFBD><7F>m<EFBFBD>n<EFBFBD><6E>O<EFBFBD>ۯ<>ԯ<EFBFBD><0F><><EFBFBD>G-<2D>=N^
|
Binary file not shown.
@ -0,0 +1 @@
|
||||
8fa874178500f99d69f649ff9128f3d1b62369a0
|
1
test/integration/stashAllChanges/expected/repo/file0
Normal file
1
test/integration/stashAllChanges/expected/repo/file0
Normal file
@ -0,0 +1 @@
|
||||
test0
|
1
test/integration/stashAllChanges/expected/repo/file1
Normal file
1
test/integration/stashAllChanges/expected/repo/file1
Normal file
@ -0,0 +1 @@
|
||||
hello there
|
1
test/integration/stashAllChanges/expected/repo/file2
Normal file
1
test/integration/stashAllChanges/expected/repo/file2
Normal file
@ -0,0 +1 @@
|
||||
hello there
|
1
test/integration/stashAllChanges/expected/repo/file3
Normal file
1
test/integration/stashAllChanges/expected/repo/file3
Normal file
@ -0,0 +1 @@
|
||||
hello there
|
1
test/integration/stashAllChanges/recording.json
Normal file
1
test/integration/stashAllChanges/recording.json
Normal file
@ -0,0 +1 @@
|
||||
{"KeyEvents":[{"Timestamp":1107,"Mod":0,"Key":256,"Ch":83},{"Timestamp":1736,"Mod":0,"Key":256,"Ch":97},{"Timestamp":2531,"Mod":0,"Key":256,"Ch":115},{"Timestamp":2623,"Mod":0,"Key":256,"Ch":116},{"Timestamp":2684,"Mod":0,"Key":256,"Ch":97},{"Timestamp":2784,"Mod":0,"Key":256,"Ch":115},{"Timestamp":3312,"Mod":0,"Key":256,"Ch":104},{"Timestamp":3400,"Mod":0,"Key":256,"Ch":32},{"Timestamp":3468,"Mod":0,"Key":256,"Ch":97},{"Timestamp":3583,"Mod":0,"Key":256,"Ch":108},{"Timestamp":3716,"Mod":0,"Key":256,"Ch":108},{"Timestamp":3913,"Mod":0,"Key":13,"Ch":13},{"Timestamp":4284,"Mod":0,"Key":256,"Ch":108},{"Timestamp":4420,"Mod":0,"Key":256,"Ch":108},{"Timestamp":4707,"Mod":0,"Key":256,"Ch":108},{"Timestamp":5231,"Mod":0,"Key":256,"Ch":103},{"Timestamp":5940,"Mod":0,"Key":13,"Ch":13},{"Timestamp":6733,"Mod":0,"Key":256,"Ch":50},{"Timestamp":7944,"Mod":0,"Key":256,"Ch":32},{"Timestamp":8694,"Mod":0,"Key":256,"Ch":83},{"Timestamp":9487,"Mod":0,"Key":256,"Ch":97},{"Timestamp":9952,"Mod":0,"Key":256,"Ch":115},{"Timestamp":10041,"Mod":0,"Key":256,"Ch":116},{"Timestamp":10092,"Mod":0,"Key":256,"Ch":97},{"Timestamp":10166,"Mod":0,"Key":256,"Ch":115},{"Timestamp":10253,"Mod":0,"Key":256,"Ch":104},{"Timestamp":10381,"Mod":0,"Key":256,"Ch":32},{"Timestamp":10610,"Mod":0,"Key":256,"Ch":110},{"Timestamp":10718,"Mod":0,"Key":256,"Ch":101},{"Timestamp":10869,"Mod":0,"Key":256,"Ch":119},{"Timestamp":10938,"Mod":0,"Key":256,"Ch":108},{"Timestamp":11071,"Mod":0,"Key":256,"Ch":121},{"Timestamp":11129,"Mod":0,"Key":256,"Ch":32},{"Timestamp":11279,"Mod":0,"Key":256,"Ch":116},{"Timestamp":11676,"Mod":0,"Key":256,"Ch":114},{"Timestamp":11753,"Mod":0,"Key":256,"Ch":97},{"Timestamp":11874,"Mod":0,"Key":256,"Ch":99},{"Timestamp":11984,"Mod":0,"Key":256,"Ch":107},{"Timestamp":12025,"Mod":0,"Key":256,"Ch":101},{"Timestamp":12125,"Mod":0,"Key":256,"Ch":100},{"Timestamp":12341,"Mod":0,"Key":13,"Ch":13},{"Timestamp":12925,"Mod":0,"Key":256,"Ch":53},{"Timestamp":14343,"Mod":0,"Key":256,"Ch":103},{"Timestamp":14871,"Mod":0,"Key":13,"Ch":13},{"Timestamp":15775,"Mod":0,"Key":256,"Ch":50},{"Timestamp":16168,"Mod":0,"Key":256,"Ch":106},{"Timestamp":16308,"Mod":0,"Key":256,"Ch":106},{"Timestamp":16515,"Mod":0,"Key":256,"Ch":32},{"Timestamp":16850,"Mod":0,"Key":256,"Ch":107},{"Timestamp":17159,"Mod":0,"Key":256,"Ch":32},{"Timestamp":18125,"Mod":0,"Key":256,"Ch":83},{"Timestamp":18639,"Mod":0,"Key":256,"Ch":97},{"Timestamp":18972,"Mod":0,"Key":256,"Ch":115},{"Timestamp":19060,"Mod":0,"Key":256,"Ch":116},{"Timestamp":19168,"Mod":0,"Key":256,"Ch":97},{"Timestamp":19236,"Mod":0,"Key":256,"Ch":115},{"Timestamp":19405,"Mod":0,"Key":256,"Ch":104},{"Timestamp":19593,"Mod":0,"Key":256,"Ch":32},{"Timestamp":19857,"Mod":0,"Key":256,"Ch":119},{"Timestamp":19942,"Mod":0,"Key":256,"Ch":105},{"Timestamp":20012,"Mod":0,"Key":256,"Ch":116},{"Timestamp":20072,"Mod":0,"Key":256,"Ch":104},{"Timestamp":20128,"Mod":0,"Key":256,"Ch":32},{"Timestamp":20188,"Mod":0,"Key":256,"Ch":115},{"Timestamp":20251,"Mod":0,"Key":256,"Ch":116},{"Timestamp":20335,"Mod":0,"Key":256,"Ch":97},{"Timestamp":20432,"Mod":0,"Key":256,"Ch":103},{"Timestamp":20471,"Mod":0,"Key":256,"Ch":101},{"Timestamp":20606,"Mod":0,"Key":256,"Ch":100},{"Timestamp":20789,"Mod":0,"Key":13,"Ch":13},{"Timestamp":21429,"Mod":0,"Key":256,"Ch":53},{"Timestamp":22402,"Mod":0,"Key":256,"Ch":103},{"Timestamp":23066,"Mod":0,"Key":13,"Ch":13},{"Timestamp":24259,"Mod":0,"Key":256,"Ch":104},{"Timestamp":24394,"Mod":0,"Key":256,"Ch":104},{"Timestamp":24532,"Mod":0,"Key":256,"Ch":104},{"Timestamp":24793,"Mod":0,"Key":256,"Ch":113}],"ResizeEvents":[{"Timestamp":0,"Width":239,"Height":56}]}
|
26
test/integration/stashAllChanges/setup.sh
Normal file
26
test/integration/stashAllChanges/setup.sh
Normal file
@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
cd $1
|
||||
|
||||
git init
|
||||
|
||||
git config user.email "CI@example.com"
|
||||
git config user.name "CI"
|
||||
|
||||
echo test0 > file0
|
||||
git add .
|
||||
git commit -am file0
|
||||
|
||||
echo test1 > file1
|
||||
git add .
|
||||
git commit -am file1
|
||||
|
||||
echo test2 > file2
|
||||
git add .
|
||||
git commit -am file2
|
||||
|
||||
echo "hello there" > file1
|
||||
echo "hello there" > file2
|
||||
echo "hello there" > file3
|
1
test/integration/stashAllChanges/test.json
Normal file
1
test/integration/stashAllChanges/test.json
Normal file
@ -0,0 +1 @@
|
||||
{ "description": "Stashing all files", "speed": 5 }
|
@ -0,0 +1 @@
|
||||
file2
|
@ -0,0 +1 @@
|
||||
ref: refs/heads/master
|
@ -0,0 +1 @@
|
||||
e55d4f76f2b99c3b6b0c960725099ae54e34af70
|
@ -0,0 +1,8 @@
|
||||
[core]
|
||||
repositoryformatversion = 0
|
||||
filemode = true
|
||||
bare = false
|
||||
logallrefupdates = true
|
||||
[user]
|
||||
email = CI@example.com
|
||||
name = CI
|
@ -0,0 +1 @@
|
||||
Unnamed repository; edit this file 'description' to name the repository.
|
Binary file not shown.
@ -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]
|
||||
# *~
|
@ -0,0 +1,4 @@
|
||||
0000000000000000000000000000000000000000 783b58a50bb867917c6a8a78ff18cadb3fdc771e CI <CI@example.com> 1650002378 +0200 commit (initial): file0
|
||||
783b58a50bb867917c6a8a78ff18cadb3fdc771e e221db5981b482fb2110c8b283f48c08cd5f10c3 CI <CI@example.com> 1650002378 +0200 commit: file1
|
||||
e221db5981b482fb2110c8b283f48c08cd5f10c3 e55d4f76f2b99c3b6b0c960725099ae54e34af70 CI <CI@example.com> 1650002378 +0200 commit: file2
|
||||
e55d4f76f2b99c3b6b0c960725099ae54e34af70 e55d4f76f2b99c3b6b0c960725099ae54e34af70 CI <CI@example.com> 1650002384 +0200 reset: moving to HEAD
|
@ -0,0 +1,3 @@
|
||||
0000000000000000000000000000000000000000 783b58a50bb867917c6a8a78ff18cadb3fdc771e CI <CI@example.com> 1650002378 +0200 commit (initial): file0
|
||||
783b58a50bb867917c6a8a78ff18cadb3fdc771e e221db5981b482fb2110c8b283f48c08cd5f10c3 CI <CI@example.com> 1650002378 +0200 commit: file1
|
||||
e221db5981b482fb2110c8b283f48c08cd5f10c3 e55d4f76f2b99c3b6b0c960725099ae54e34af70 CI <CI@example.com> 1650002378 +0200 commit: file2
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,3 @@
|
||||
x+)JMU<4D><55>d040031QH<51><48>I5`<60><10><><EFBFBD><EFBFBD><EFBFBD>ֶw<D6B6><77><EFBFBD>w.<2E><>h<EFBFBD>T<EFBFBD>[H
|
||||
<19><1F>e<EFBFBD><65>"Ǩ<>S<EFBFBD>,<2C><>gu"<22><>YH
|
||||
<EFBFBD>$x~5(<28>;<3B>rբ<72><D5A2><EFBFBD><EFBFBD>W<EFBFBD><57>-<2D>Ж+^
|
Binary file not shown.
@ -0,0 +1 @@
|
||||
x<01>ϻj1<10><><EFBFBD><EFBFBD><14>at<19>B0<42>r<EFBFBD>gIg<49>I<EFBFBD><49>Z?~<7E>I<EFBFBD><49><EFBFBD>q<EFBFBD>o<EFBFBD><߆<0B>Oc7<><37>A<EFBFBD><41><EFBFBD>Ob!<21>Z<EFBFBD><5A><EFBFBD>j<EFBFBD><6A><1B>i<EFBFBD><1D>p`<60><>J<EFBFBD>PEZ<45><5A>R<EFBFBD>L%0<>(8!&<26>B><3E><><EFBFBD>M8<4D>q<0B>2<EFBFBD><32><EFBFBD><EFBFBD>싘<EFBFBD>h<EFBFBD><68><EFBFBD>g|<7C><><EFBFBD>\<5C><><EFBFBD>z<EFBFBD>C<EFBFBD><43>/m<>ߝ<EFBFBD>LD!<21><>{<7B>@4<1D>1<>O>},n<><6E><EFBFBD>_<EFBFBD><17><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><05><>M<EFBFBD>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,2 @@
|
||||
x+)JMU03c040031QH<51><48>I5`<60><10><><EFBFBD><EFBFBD><EFBFBD>ֶw<D6B6><77><EFBFBD>w.<2E><>h<EFBFBD>T<EFBFBD>[H
|
||||
<19><>y<EFBFBD>W5<57>Ɨ<EFBFBD><C697>(<28>|<7C>^-<2D>W(x9
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1 @@
|
||||
e55d4f76f2b99c3b6b0c960725099ae54e34af70
|
@ -0,0 +1 @@
|
||||
test0
|
@ -0,0 +1 @@
|
||||
hello there
|
@ -0,0 +1 @@
|
||||
hello there
|
@ -0,0 +1 @@
|
||||
hello there
|
1
test/integration/stashAllChangesKeepIndex/recording.json
Normal file
1
test/integration/stashAllChangesKeepIndex/recording.json
Normal file
@ -0,0 +1 @@
|
||||
{"KeyEvents":[{"Timestamp":1343,"Mod":0,"Key":256,"Ch":32},{"Timestamp":1895,"Mod":0,"Key":256,"Ch":83},{"Timestamp":3116,"Mod":0,"Key":256,"Ch":105},{"Timestamp":4389,"Mod":0,"Key":256,"Ch":107},{"Timestamp":4458,"Mod":0,"Key":256,"Ch":101},{"Timestamp":4571,"Mod":0,"Key":256,"Ch":101},{"Timestamp":4656,"Mod":0,"Key":256,"Ch":112},{"Timestamp":4742,"Mod":0,"Key":256,"Ch":32},{"Timestamp":4834,"Mod":0,"Key":256,"Ch":105},{"Timestamp":4908,"Mod":0,"Key":256,"Ch":110},{"Timestamp":4965,"Mod":0,"Key":256,"Ch":100},{"Timestamp":5013,"Mod":0,"Key":256,"Ch":101},{"Timestamp":5162,"Mod":0,"Key":256,"Ch":120},{"Timestamp":5500,"Mod":0,"Key":13,"Ch":13},{"Timestamp":6822,"Mod":0,"Key":256,"Ch":53},{"Timestamp":8093,"Mod":0,"Key":256,"Ch":103},{"Timestamp":8985,"Mod":0,"Key":13,"Ch":13},{"Timestamp":9950,"Mod":0,"Key":256,"Ch":49},{"Timestamp":10588,"Mod":0,"Key":256,"Ch":106},{"Timestamp":11171,"Mod":0,"Key":256,"Ch":50},{"Timestamp":11581,"Mod":0,"Key":256,"Ch":32},{"Timestamp":12392,"Mod":0,"Key":256,"Ch":113}],"ResizeEvents":[{"Timestamp":0,"Width":239,"Height":56}]}
|
26
test/integration/stashAllChangesKeepIndex/setup.sh
Normal file
26
test/integration/stashAllChangesKeepIndex/setup.sh
Normal file
@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
cd $1
|
||||
|
||||
git init
|
||||
|
||||
git config user.email "CI@example.com"
|
||||
git config user.name "CI"
|
||||
|
||||
echo test0 > file0
|
||||
git add .
|
||||
git commit -am file0
|
||||
|
||||
echo test1 > file1
|
||||
git add .
|
||||
git commit -am file1
|
||||
|
||||
echo test2 > file2
|
||||
git add .
|
||||
git commit -am file2
|
||||
|
||||
echo "hello there" > file1
|
||||
echo "hello there" > file2
|
||||
echo "hello there" > file3
|
1
test/integration/stashAllChangesKeepIndex/test.json
Normal file
1
test/integration/stashAllChangesKeepIndex/test.json
Normal file
@ -0,0 +1 @@
|
||||
{ "description": "Stashing some files", "speed": 5 }
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user