From dbb8b17d839cea811238f2575474f97176bc90a1 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Tue, 18 Jan 2022 19:44:41 +1100 Subject: [PATCH] add integration test for deleting a range of lines in the staging panel --- .../expected/.git_keep/COMMIT_EDITMSG | 1 + .../stagingTwo/expected/.git_keep/FETCH_HEAD | 0 .../stagingTwo/expected/.git_keep/HEAD | 1 + .../stagingTwo/expected/.git_keep/config | 10 +++ .../stagingTwo/expected/.git_keep/description | 1 + .../stagingTwo/expected/.git_keep/index | Bin 0 -> 137 bytes .../expected/.git_keep/info/exclude | 7 ++ .../stagingTwo/expected/.git_keep/logs/HEAD | 1 + .../expected/.git_keep/logs/refs/heads/master | 1 + .../15/8e9a9c1a9627ea0ef4de8b00a503ed0f80a09e | Bin 0 -> 588 bytes .../7b/9c2149f16c706cea79b03234cb67fde7e9b68f | Bin 0 -> 52 bytes .../f7/93cf3fd99464dbd3499093e95197229b771b11 | Bin 0 -> 118 bytes .../expected/.git_keep/refs/heads/master | 1 + test/integration/stagingTwo/expected/one.txt | 64 +++++++++++++++++ test/integration/stagingTwo/files/one.txt | 63 ++++++++++++++++ test/integration/stagingTwo/files/one_new.txt | 67 ++++++++++++++++++ test/integration/stagingTwo/recording.json | 1 + test/integration/stagingTwo/setup.sh | 14 ++++ test/integration/stagingTwo/test.json | 4 ++ 19 files changed, 236 insertions(+) create mode 100644 test/integration/stagingTwo/expected/.git_keep/COMMIT_EDITMSG create mode 100644 test/integration/stagingTwo/expected/.git_keep/FETCH_HEAD create mode 100644 test/integration/stagingTwo/expected/.git_keep/HEAD create mode 100644 test/integration/stagingTwo/expected/.git_keep/config create mode 100644 test/integration/stagingTwo/expected/.git_keep/description create mode 100644 test/integration/stagingTwo/expected/.git_keep/index create mode 100644 test/integration/stagingTwo/expected/.git_keep/info/exclude create mode 100644 test/integration/stagingTwo/expected/.git_keep/logs/HEAD create mode 100644 test/integration/stagingTwo/expected/.git_keep/logs/refs/heads/master create mode 100644 test/integration/stagingTwo/expected/.git_keep/objects/15/8e9a9c1a9627ea0ef4de8b00a503ed0f80a09e create mode 100644 test/integration/stagingTwo/expected/.git_keep/objects/7b/9c2149f16c706cea79b03234cb67fde7e9b68f create mode 100644 test/integration/stagingTwo/expected/.git_keep/objects/f7/93cf3fd99464dbd3499093e95197229b771b11 create mode 100644 test/integration/stagingTwo/expected/.git_keep/refs/heads/master create mode 100644 test/integration/stagingTwo/expected/one.txt create mode 100644 test/integration/stagingTwo/files/one.txt create mode 100644 test/integration/stagingTwo/files/one_new.txt create mode 100644 test/integration/stagingTwo/recording.json create mode 100644 test/integration/stagingTwo/setup.sh create mode 100644 test/integration/stagingTwo/test.json diff --git a/test/integration/stagingTwo/expected/.git_keep/COMMIT_EDITMSG b/test/integration/stagingTwo/expected/.git_keep/COMMIT_EDITMSG new file mode 100644 index 000000000..e2129701f --- /dev/null +++ b/test/integration/stagingTwo/expected/.git_keep/COMMIT_EDITMSG @@ -0,0 +1 @@ +file1 diff --git a/test/integration/stagingTwo/expected/.git_keep/FETCH_HEAD b/test/integration/stagingTwo/expected/.git_keep/FETCH_HEAD new file mode 100644 index 000000000..e69de29bb diff --git a/test/integration/stagingTwo/expected/.git_keep/HEAD b/test/integration/stagingTwo/expected/.git_keep/HEAD new file mode 100644 index 000000000..cb089cd89 --- /dev/null +++ b/test/integration/stagingTwo/expected/.git_keep/HEAD @@ -0,0 +1 @@ +ref: refs/heads/master diff --git a/test/integration/stagingTwo/expected/.git_keep/config b/test/integration/stagingTwo/expected/.git_keep/config new file mode 100644 index 000000000..8ae104545 --- /dev/null +++ b/test/integration/stagingTwo/expected/.git_keep/config @@ -0,0 +1,10 @@ +[core] + repositoryformatversion = 0 + filemode = true + bare = false + logallrefupdates = true + ignorecase = true + precomposeunicode = true +[user] + email = CI@example.com + name = CI diff --git a/test/integration/stagingTwo/expected/.git_keep/description b/test/integration/stagingTwo/expected/.git_keep/description new file mode 100644 index 000000000..498b267a8 --- /dev/null +++ b/test/integration/stagingTwo/expected/.git_keep/description @@ -0,0 +1 @@ +Unnamed repository; edit this file 'description' to name the repository. diff --git a/test/integration/stagingTwo/expected/.git_keep/index b/test/integration/stagingTwo/expected/.git_keep/index new file mode 100644 index 0000000000000000000000000000000000000000..04a93cbaf48fc6205dbf2aa98db03dfe2a684eb8 GIT binary patch literal 137 zcmZ?q402{*U|<4b#>8i}eX>(;KLXQJez-6)Ft9QS>aJv9Xj}r6{t8qh0u*{G+Ba*C z)HL;1d|&Q$Gc09(%ipkI9s_%RUaDS6MF~(*NRX>5kdkCDR50MGo}=jbF{dEsRpkaF ilhf&cpTFGJzglPeVUDX_f3+CSEIIPGx99iw$W#Ey-!o7E literal 0 HcmV?d00001 diff --git a/test/integration/stagingTwo/expected/.git_keep/info/exclude b/test/integration/stagingTwo/expected/.git_keep/info/exclude new file mode 100644 index 000000000..8e9f2071f --- /dev/null +++ b/test/integration/stagingTwo/expected/.git_keep/info/exclude @@ -0,0 +1,7 @@ +# 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] +# *~ +.DS_Store diff --git a/test/integration/stagingTwo/expected/.git_keep/logs/HEAD b/test/integration/stagingTwo/expected/.git_keep/logs/HEAD new file mode 100644 index 000000000..3e79e936b --- /dev/null +++ b/test/integration/stagingTwo/expected/.git_keep/logs/HEAD @@ -0,0 +1 @@ +0000000000000000000000000000000000000000 f793cf3fd99464dbd3499093e95197229b771b11 CI 1642495374 +1100 commit (initial): file1 diff --git a/test/integration/stagingTwo/expected/.git_keep/logs/refs/heads/master b/test/integration/stagingTwo/expected/.git_keep/logs/refs/heads/master new file mode 100644 index 000000000..3e79e936b --- /dev/null +++ b/test/integration/stagingTwo/expected/.git_keep/logs/refs/heads/master @@ -0,0 +1 @@ +0000000000000000000000000000000000000000 f793cf3fd99464dbd3499093e95197229b771b11 CI 1642495374 +1100 commit (initial): file1 diff --git a/test/integration/stagingTwo/expected/.git_keep/objects/15/8e9a9c1a9627ea0ef4de8b00a503ed0f80a09e b/test/integration/stagingTwo/expected/.git_keep/objects/15/8e9a9c1a9627ea0ef4de8b00a503ed0f80a09e new file mode 100644 index 0000000000000000000000000000000000000000..2c00719b0e5858d36ec8b4f5d17c9076f943d1de GIT binary patch literal 588 zcmV-S0<-;i0ku@IZrd;r?J9l+p&^hA*J_6jHQ=F5;2=N{7xB=UmMEDqMGBN;!!`Wx zy%R;sa)KsHHHr6*ckkXKxsiH9zkd7j{Zqx#9V~a z8DPl^uWO#Qc`mrj63PA?0Zgi0k>F0P!jGo6jgWOnVnULHKJmj{Tb9Sw`quWRso|{Q zHDy%s1I-Ym1Db0?0d0gTNZzXSb%7|RlOg{^0$tyh8J#aM)dNw-V&>XobFHFyY8(EN ztbtDD6!$!}Qr@@XVRg0VQ5R7h!x(|#O=}cr2#v^@kmgwNf%6@&YFam@O&bbyY%6NN ziPdgqgCuZ`J9Oe!B)I1dSNo;v;y8B%1wn%t3!@gnGcWa?FNNfgHOk<|Xajvg1piH7 zwc5P=Y=z9YLC$ZB`5XL4{!xZQc=a%JEwh~jb;evjk;rL}EEZG=i4p`ZLf>|Q1VAXL zdJ}xfK@KSD(TlP}Y;2>g*SmD%r$8oF_<1jktzvF7?Gm4!Xn+Q&K-o!g%5Kp z#icb}1w2fy<@+ZLwwzx%H1aPpty0|32OE9vR^ZPl359nOi~y9u7C=t+4{5rgVG6v2 zP7z0E&&(L03wq;{pyq1rN3`mO88Zi=LMX7_aw#w2aKq}YM}C;XgW=~C9WiT`_Ff%bx$j?jFE2$`95bc{aM{1h-E50xHx*3)-zvXXO KFb@DJ?hn7{0Tf*T literal 0 HcmV?d00001 diff --git a/test/integration/stagingTwo/expected/.git_keep/objects/f7/93cf3fd99464dbd3499093e95197229b771b11 b/test/integration/stagingTwo/expected/.git_keep/objects/f7/93cf3fd99464dbd3499093e95197229b771b11 new file mode 100644 index 0000000000000000000000000000000000000000..85ed192ae1a9abeb400360b4190765b78cfd9c6b GIT binary patch literal 118 zcmV-+0Ez#20gcT;3c@fDKvCB@#q0&iBxA+_5uvLdBN-=HXh