From 38739b16bcb339817cda5bcb5a07379635790184 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Tue, 6 Apr 2021 09:49:36 +1000 Subject: [PATCH] add filter path test --- .../expected/.git_keep/COMMIT_EDITMSG | 1 + .../filterPath/expected/.git_keep/FETCH_HEAD | 0 .../filterPath/expected/.git_keep/HEAD | 1 + .../filterPath/expected/.git_keep/config | 10 ++++++ .../filterPath/expected/.git_keep/description | 1 + .../filterPath/expected/.git_keep/index | Bin 0 -> 281 bytes .../expected/.git_keep/info/exclude | 7 ++++ .../filterPath/expected/.git_keep/logs/HEAD | 7 ++++ .../expected/.git_keep/logs/refs/heads/master | 7 ++++ .../03/15577613e2e65683d0dcf3371940a44ea073ca | Bin 0 -> 148 bytes .../18/0cf8328022becee9aaa2577a8f84ea2b9f3827 | Bin 0 -> 21 bytes .../1e/3e67b999db1576ad1ee08bf4f02bdf29e49442 | Bin 0 -> 50 bytes .../2e/a97a56215f6adbe991eaf0dcf61c7086880ea5 | Bin 0 -> 126 bytes .../38/143ad4a0fe2ab6ee53c2ef89a5d9e2bd9535da | Bin 0 -> 21 bytes .../4c/2d0500178f2642effb990e6d65e073022bf50b | Bin 0 -> 118 bytes .../51/92ae05adf946800910d092fb406eb04d56a578 | Bin 0 -> 146 bytes .../5f/bbe6422fb135ada1a05b15f61369747d4e6842 | 5 +++ .../66/7b767bf067438c08d47c54fe756a34f238b90d | Bin 0 -> 145 bytes .../77/9de836a10ac879fa919f48d5dc4f4ce11528e2 | Bin 0 -> 101 bytes .../84/b823dc5fc92fcf08eb8c8545716232ce49bd45 | Bin 0 -> 106 bytes .../9e/88a70dc8d82dd2afbfd50176ef78e18823bc2c | Bin 0 -> 101 bytes .../a5/bce3fd2565d8f458555a0c6f42d0504a848bd5 | Bin 0 -> 21 bytes .../b7/c728d5b4e9dfc210ec19f0549f25c94b766e4e | Bin 0 -> 100 bytes .../d0/76cc9cc09acaa2d36fbc7a95fd3e2306494641 | 2 ++ .../d2/34c5e057fe32c676ea67e8cb38f4625ddaeb54 | Bin 0 -> 21 bytes .../d6/9102e71a2f400fe52feab06516e05cdaf7d0ba | Bin 0 -> 147 bytes .../df/6b0d2bcc76e6ec0fca20c227104a4f28bac41b | Bin 0 -> 21 bytes .../f7/12b0a288ced6c49e6cfcf16f7af0991e50849d | 3 ++ .../expected/.git_keep/refs/heads/master | 1 + test/integration/filterPath/expected/file | 1 + test/integration/filterPath/expected/file0 | 1 + test/integration/filterPath/expected/file2 | 1 + test/integration/filterPath/recording.json | 1 + test/integration/filterPath/setup.sh | 31 ++++++++++++++++++ test/integration/filterPath/test.json | 1 + 35 files changed, 81 insertions(+) create mode 100644 test/integration/filterPath/expected/.git_keep/COMMIT_EDITMSG create mode 100644 test/integration/filterPath/expected/.git_keep/FETCH_HEAD create mode 100644 test/integration/filterPath/expected/.git_keep/HEAD create mode 100644 test/integration/filterPath/expected/.git_keep/config create mode 100644 test/integration/filterPath/expected/.git_keep/description create mode 100644 test/integration/filterPath/expected/.git_keep/index create mode 100644 test/integration/filterPath/expected/.git_keep/info/exclude create mode 100644 test/integration/filterPath/expected/.git_keep/logs/HEAD create mode 100644 test/integration/filterPath/expected/.git_keep/logs/refs/heads/master create mode 100644 test/integration/filterPath/expected/.git_keep/objects/03/15577613e2e65683d0dcf3371940a44ea073ca create mode 100644 test/integration/filterPath/expected/.git_keep/objects/18/0cf8328022becee9aaa2577a8f84ea2b9f3827 create mode 100644 test/integration/filterPath/expected/.git_keep/objects/1e/3e67b999db1576ad1ee08bf4f02bdf29e49442 create mode 100644 test/integration/filterPath/expected/.git_keep/objects/2e/a97a56215f6adbe991eaf0dcf61c7086880ea5 create mode 100644 test/integration/filterPath/expected/.git_keep/objects/38/143ad4a0fe2ab6ee53c2ef89a5d9e2bd9535da create mode 100644 test/integration/filterPath/expected/.git_keep/objects/4c/2d0500178f2642effb990e6d65e073022bf50b create mode 100644 test/integration/filterPath/expected/.git_keep/objects/51/92ae05adf946800910d092fb406eb04d56a578 create mode 100644 test/integration/filterPath/expected/.git_keep/objects/5f/bbe6422fb135ada1a05b15f61369747d4e6842 create mode 100644 test/integration/filterPath/expected/.git_keep/objects/66/7b767bf067438c08d47c54fe756a34f238b90d create mode 100644 test/integration/filterPath/expected/.git_keep/objects/77/9de836a10ac879fa919f48d5dc4f4ce11528e2 create mode 100644 test/integration/filterPath/expected/.git_keep/objects/84/b823dc5fc92fcf08eb8c8545716232ce49bd45 create mode 100644 test/integration/filterPath/expected/.git_keep/objects/9e/88a70dc8d82dd2afbfd50176ef78e18823bc2c create mode 100644 test/integration/filterPath/expected/.git_keep/objects/a5/bce3fd2565d8f458555a0c6f42d0504a848bd5 create mode 100644 test/integration/filterPath/expected/.git_keep/objects/b7/c728d5b4e9dfc210ec19f0549f25c94b766e4e create mode 100644 test/integration/filterPath/expected/.git_keep/objects/d0/76cc9cc09acaa2d36fbc7a95fd3e2306494641 create mode 100644 test/integration/filterPath/expected/.git_keep/objects/d2/34c5e057fe32c676ea67e8cb38f4625ddaeb54 create mode 100644 test/integration/filterPath/expected/.git_keep/objects/d6/9102e71a2f400fe52feab06516e05cdaf7d0ba create mode 100644 test/integration/filterPath/expected/.git_keep/objects/df/6b0d2bcc76e6ec0fca20c227104a4f28bac41b create mode 100644 test/integration/filterPath/expected/.git_keep/objects/f7/12b0a288ced6c49e6cfcf16f7af0991e50849d create mode 100644 test/integration/filterPath/expected/.git_keep/refs/heads/master create mode 100644 test/integration/filterPath/expected/file create mode 100644 test/integration/filterPath/expected/file0 create mode 100644 test/integration/filterPath/expected/file2 create mode 100644 test/integration/filterPath/recording.json create mode 100644 test/integration/filterPath/setup.sh create mode 100644 test/integration/filterPath/test.json diff --git a/test/integration/filterPath/expected/.git_keep/COMMIT_EDITMSG b/test/integration/filterPath/expected/.git_keep/COMMIT_EDITMSG new file mode 100644 index 000000000..9daeafb98 --- /dev/null +++ b/test/integration/filterPath/expected/.git_keep/COMMIT_EDITMSG @@ -0,0 +1 @@ +test diff --git a/test/integration/filterPath/expected/.git_keep/FETCH_HEAD b/test/integration/filterPath/expected/.git_keep/FETCH_HEAD new file mode 100644 index 000000000..e69de29bb diff --git a/test/integration/filterPath/expected/.git_keep/HEAD b/test/integration/filterPath/expected/.git_keep/HEAD new file mode 100644 index 000000000..cb089cd89 --- /dev/null +++ b/test/integration/filterPath/expected/.git_keep/HEAD @@ -0,0 +1 @@ +ref: refs/heads/master diff --git a/test/integration/filterPath/expected/.git_keep/config b/test/integration/filterPath/expected/.git_keep/config new file mode 100644 index 000000000..8ae104545 --- /dev/null +++ b/test/integration/filterPath/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/filterPath/expected/.git_keep/description b/test/integration/filterPath/expected/.git_keep/description new file mode 100644 index 000000000..498b267a8 --- /dev/null +++ b/test/integration/filterPath/expected/.git_keep/description @@ -0,0 +1 @@ +Unnamed repository; edit this file 'description' to name the repository. diff --git a/test/integration/filterPath/expected/.git_keep/index b/test/integration/filterPath/expected/.git_keep/index new file mode 100644 index 0000000000000000000000000000000000000000..c1d9597bd905a0dd5a051405b81ecffdeccf3a4b GIT binary patch literal 281 zcmZ?q402{*U|<4b=7j7yzXT5M2#3*(3=Ax6I!$H_42??|7#P0-)rbHw+a;5u55oT$ z9V>g4{^GR7m!#NRuR|DE(lT>WfwDjV($6FJ<0*`WnA7+Y-5d)Mt1AosX>EHKeCU1W z(wmR=PBp#7zzQ 1617665274 +1000 commit (initial): file0 +4c2d0500178f2642effb990e6d65e073022bf50b 0315577613e2e65683d0dcf3371940a44ea073ca CI 1617665274 +1000 commit: file1 +0315577613e2e65683d0dcf3371940a44ea073ca 5fbbe6422fb135ada1a05b15f61369747d4e6842 CI 1617665274 +1000 commit: file2 +5fbbe6422fb135ada1a05b15f61369747d4e6842 f712b0a288ced6c49e6cfcf16f7af0991e50849d CI 1617665274 +1000 commit: file1 and file2 +f712b0a288ced6c49e6cfcf16f7af0991e50849d 5192ae05adf946800910d092fb406eb04d56a578 CI 1617665274 +1000 commit: file +5192ae05adf946800910d092fb406eb04d56a578 667b767bf067438c08d47c54fe756a34f238b90d CI 1617665282 +1000 commit: asd +667b767bf067438c08d47c54fe756a34f238b90d d69102e71a2f400fe52feab06516e05cdaf7d0ba CI 1617665289 +1000 commit: test diff --git a/test/integration/filterPath/expected/.git_keep/logs/refs/heads/master b/test/integration/filterPath/expected/.git_keep/logs/refs/heads/master new file mode 100644 index 000000000..1f153be50 --- /dev/null +++ b/test/integration/filterPath/expected/.git_keep/logs/refs/heads/master @@ -0,0 +1,7 @@ +0000000000000000000000000000000000000000 4c2d0500178f2642effb990e6d65e073022bf50b CI 1617665274 +1000 commit (initial): file0 +4c2d0500178f2642effb990e6d65e073022bf50b 0315577613e2e65683d0dcf3371940a44ea073ca CI 1617665274 +1000 commit: file1 +0315577613e2e65683d0dcf3371940a44ea073ca 5fbbe6422fb135ada1a05b15f61369747d4e6842 CI 1617665274 +1000 commit: file2 +5fbbe6422fb135ada1a05b15f61369747d4e6842 f712b0a288ced6c49e6cfcf16f7af0991e50849d CI 1617665274 +1000 commit: file1 and file2 +f712b0a288ced6c49e6cfcf16f7af0991e50849d 5192ae05adf946800910d092fb406eb04d56a578 CI 1617665274 +1000 commit: file +5192ae05adf946800910d092fb406eb04d56a578 667b767bf067438c08d47c54fe756a34f238b90d CI 1617665282 +1000 commit: asd +667b767bf067438c08d47c54fe756a34f238b90d d69102e71a2f400fe52feab06516e05cdaf7d0ba CI 1617665289 +1000 commit: test diff --git a/test/integration/filterPath/expected/.git_keep/objects/03/15577613e2e65683d0dcf3371940a44ea073ca b/test/integration/filterPath/expected/.git_keep/objects/03/15577613e2e65683d0dcf3371940a44ea073ca new file mode 100644 index 0000000000000000000000000000000000000000..bff83ef7b7c843ddba9d8908c68f38c9ff80e1fa GIT binary patch literal 148 zcmV;F0Biqv0gcW<3c@fDKvCB@#q0%{Op=KK5uvLdBbiLFU~DN7Jia}G+s|8kS$kgw z*hHtXt3t)dB1r^OmYk_NZbf2Fp;f2kkbUy(t=aOf?*U$@VnDR<+K4@AYb7OAt{fDj zL!#0G7Lz~Yx$ZE{aGU0beskYmdXcr?!Lp6afue`AMMQJdV`}K1+_dGT*8Bi~ZE#08nZNMgRZ+ literal 0 HcmV?d00001 diff --git a/test/integration/filterPath/expected/.git_keep/objects/1e/3e67b999db1576ad1ee08bf4f02bdf29e49442 b/test/integration/filterPath/expected/.git_keep/objects/1e/3e67b999db1576ad1ee08bf4f02bdf29e49442 new file mode 100644 index 0000000000000000000000000000000000000000..79fcadf67fdecb0f0cffca7ff27b2ae5c031e4d7 GIT binary patch literal 50 zcmV-20L}k+0V^p=O;s>9W-v4`Ff%bxNXyJgHDIt1vAVM0pVqc_!H3>=F1`6^?^M%U I033l4YT~68jQ{`u literal 0 HcmV?d00001 diff --git a/test/integration/filterPath/expected/.git_keep/objects/2e/a97a56215f6adbe991eaf0dcf61c7086880ea5 b/test/integration/filterPath/expected/.git_keep/objects/2e/a97a56215f6adbe991eaf0dcf61c7086880ea5 new file mode 100644 index 0000000000000000000000000000000000000000..0790c9b90ae81e18bee240b573ffc24de9717378 GIT binary patch literal 126 zcmV-^0D=E_0V^p=O;s>7He@g~FfcPQQAo?oNoBZXa`Zv?Kci!1uhL(fw)m11d+T)w zlDq+fg^1Oa1^=|Ry$e3{zH{l#M|-E5-a=Af$gp(JAs4j gz=%PD=Z8^)(!O&qS1k&!>Th|aJ>Nnd01ApbkfO;wrvLx| literal 0 HcmV?d00001 diff --git a/test/integration/filterPath/expected/.git_keep/objects/38/143ad4a0fe2ab6ee53c2ef89a5d9e2bd9535da b/test/integration/filterPath/expected/.git_keep/objects/38/143ad4a0fe2ab6ee53c2ef89a5d9e2bd9535da new file mode 100644 index 0000000000000000000000000000000000000000..06c9cb73d7a8ed6841ce407bd6bb15235c8fa15c GIT binary patch literal 21 ccmb|y2)08mZ`J^%m! literal 0 HcmV?d00001 diff --git a/test/integration/filterPath/expected/.git_keep/objects/4c/2d0500178f2642effb990e6d65e073022bf50b b/test/integration/filterPath/expected/.git_keep/objects/4c/2d0500178f2642effb990e6d65e073022bf50b new file mode 100644 index 0000000000000000000000000000000000000000..f1b52c23b354a1566176a0aab3883166225c11f5 GIT binary patch literal 118 zcmV-+0Ez#20gcT;3c@fDMq$@E#q0%{iPOY@h|pD!ku-m>&=4sRdi?eXZXX}Kxz)OK z64guJ0218cdWx*2G``w2j7zp5ye!9_x3-ZEp2N;>0^Q YSg&*yW;SO%CmnxsQPTJQL)QQ{n`DVt3bKoWd}e?(q-tUW z@rGP1Dt*Rl?|NSJeO{jOP3_p^#(R5cKnRH52B)uJj8P{&r-uBgtGaHYer^&uvTb@s Ad;kCd literal 0 HcmV?d00001 diff --git a/test/integration/filterPath/expected/.git_keep/objects/5f/bbe6422fb135ada1a05b15f61369747d4e6842 b/test/integration/filterPath/expected/.git_keep/objects/5f/bbe6422fb135ada1a05b15f61369747d4e6842 new file mode 100644 index 000000000..cb982ff10 --- /dev/null +++ b/test/integration/filterPath/expected/.git_keep/objects/5f/bbe6422fb135ada1a05b15f61369747d4e6842 @@ -0,0 +1,5 @@ +xK +0 )/KHR +Y-@҄B_mK0ढ़vPf!W2RP\Kt@I+39c6ny(W=g1idԯlǪo SD + +9~韸˪h~a96 \ No newline at end of file diff --git a/test/integration/filterPath/expected/.git_keep/objects/66/7b767bf067438c08d47c54fe756a34f238b90d b/test/integration/filterPath/expected/.git_keep/objects/66/7b767bf067438c08d47c54fe756a34f238b90d new file mode 100644 index 0000000000000000000000000000000000000000..a53d114d71942497a5022c2179c90933087aea60 GIT binary patch literal 145 zcmV;C0B-+y0gcW<3c@fDKvCB@MfQTsgw7-bQiQI0jA=4K!PrtGczk;Vx1YE8d2Q{{ zJqn!qZsvojL?sSLm9;D;f~FNpu8cWC;*`LY+@`y|x+j#N2Bf9RzzIMQ3P`BS0Bj2k zg;*&jr=NabcR$VkI?XrxYTKT6$!i-uGDc)SY$B5y=& literal 0 HcmV?d00001 diff --git a/test/integration/filterPath/expected/.git_keep/objects/77/9de836a10ac879fa919f48d5dc4f4ce11528e2 b/test/integration/filterPath/expected/.git_keep/objects/77/9de836a10ac879fa919f48d5dc4f4ce11528e2 new file mode 100644 index 0000000000000000000000000000000000000000..ad968bd2faee3437d9a46d3b444edfe484933b81 GIT binary patch literal 101 zcmV-r0Gj`J0V^p=O;xb8WH2-^Ff%bxNXyJgHDIt1vAVM0pVqc_!H3>=F1`6^?^M%U zND2%Y?q~CApDBCxhX0hpA$0*Se~n#7q>&UDF7He@g~FfcPQQAo?oNoBZXa`Zv?Kci!1uhL(fw)m11d+T)w zlDq+fg^1Oa1^=|Ry$e3{zH{l#M|-E5-a=Af$Z$WKSNlxavp4*w6b`8ic=>DWIwFmv MzzC}q0NVUKm*jmiwEzGB literal 0 HcmV?d00001 diff --git a/test/integration/filterPath/expected/.git_keep/objects/9e/88a70dc8d82dd2afbfd50176ef78e18823bc2c b/test/integration/filterPath/expected/.git_keep/objects/9e/88a70dc8d82dd2afbfd50176ef78e18823bc2c new file mode 100644 index 0000000000000000000000000000000000000000..0e95eb06dda15fe1901a7942e7954b700b36bfa9 GIT binary patch literal 101 zcmV-r0Gj`J0V^p=O;xb8WH2-^Ff%bxNXyJgHDIt1vAVM0pVqc_!H3>=F1`6^?^M%U zND2%YmhO4{S2gv2WLwJR>kD literal 0 HcmV?d00001 diff --git a/test/integration/filterPath/expected/.git_keep/objects/a5/bce3fd2565d8f458555a0c6f42d0504a848bd5 b/test/integration/filterPath/expected/.git_keep/objects/a5/bce3fd2565d8f458555a0c6f42d0504a848bd5 new file mode 100644 index 0000000000000000000000000000000000000000..285df3e5fbab12262e28d85e78af8a31cd0024c1 GIT binary patch literal 21 ccmb`~^A08nuUMF0Q* literal 0 HcmV?d00001 diff --git a/test/integration/filterPath/expected/.git_keep/objects/b7/c728d5b4e9dfc210ec19f0549f25c94b766e4e b/test/integration/filterPath/expected/.git_keep/objects/b7/c728d5b4e9dfc210ec19f0549f25c94b766e4e new file mode 100644 index 0000000000000000000000000000000000000000..99737800047abf796860c58e42be982fb2ae3bd7 GIT binary patch literal 100 zcmV-q0Gt1K0V^p=O;xb8U@$Z=Ff%bxNXyJgWw>N=^g;MPqhn>S(qEjm_>vTR>vaf{ zya9uSh}D$^|FpKf3qJI|bLq`Td#9S-LQ-JFAi?v)s6lDpxtFUJg;({rywaX;p$-5h GxGkehVlpNG literal 0 HcmV?d00001 diff --git a/test/integration/filterPath/expected/.git_keep/objects/d0/76cc9cc09acaa2d36fbc7a95fd3e2306494641 b/test/integration/filterPath/expected/.git_keep/objects/d0/76cc9cc09acaa2d36fbc7a95fd3e2306494641 new file mode 100644 index 000000000..2e9066287 --- /dev/null +++ b/test/integration/filterPath/expected/.git_keep/objects/d0/76cc9cc09acaa2d36fbc7a95fd3e2306494641 @@ -0,0 +1,2 @@ +x+)JMU03c040031QHI5`ֶww.hT[H + yW5Ɨ(| ^-W(x9 \ No newline at end of file diff --git a/test/integration/filterPath/expected/.git_keep/objects/d2/34c5e057fe32c676ea67e8cb38f4625ddaeb54 b/test/integration/filterPath/expected/.git_keep/objects/d2/34c5e057fe32c676ea67e8cb38f4625ddaeb54 new file mode 100644 index 0000000000000000000000000000000000000000..d39fa7d2fecf1c45a132dfe3a8758952f3c8d968 GIT binary patch literal 21 ccmb}lpN08nuUO8@`> literal 0 HcmV?d00001 diff --git a/test/integration/filterPath/expected/.git_keep/objects/d6/9102e71a2f400fe52feab06516e05cdaf7d0ba b/test/integration/filterPath/expected/.git_keep/objects/d6/9102e71a2f400fe52feab06516e05cdaf7d0ba new file mode 100644 index 0000000000000000000000000000000000000000..442dcf72088aaa85f4762f527d4c63717708e1ac GIT binary patch literal 147 zcmV;E0Brww0gaA93d0}}0DJZo-V0?ltE&)7A*Vb;*OeA(6H*I(etkl(!!QhQtv$Ln z(VY4rqBAksP+UfdrLr|3Y+?n6v0BFwGkGs4YEOr}y7rz1p>`CU&08otwO#lD@ literal 0 HcmV?d00001 diff --git a/test/integration/filterPath/expected/.git_keep/objects/f7/12b0a288ced6c49e6cfcf16f7af0991e50849d b/test/integration/filterPath/expected/.git_keep/objects/f7/12b0a288ced6c49e6cfcf16f7af0991e50849d new file mode 100644 index 000000000..cff47c2b4 --- /dev/null +++ b/test/integration/filterPath/expected/.git_keep/objects/f7/12b0a288ced6c49e6cfcf16f7af0991e50849d @@ -0,0 +1,3 @@ +xK +0@]$3DzI2BӖ[ox> cԜ#jB%j Z +BjC$Մ&7qwm)n"C%oZkus˟"/+<| \ No newline at end of file diff --git a/test/integration/filterPath/expected/.git_keep/refs/heads/master b/test/integration/filterPath/expected/.git_keep/refs/heads/master new file mode 100644 index 000000000..ab6a49afb --- /dev/null +++ b/test/integration/filterPath/expected/.git_keep/refs/heads/master @@ -0,0 +1 @@ +d69102e71a2f400fe52feab06516e05cdaf7d0ba diff --git a/test/integration/filterPath/expected/file b/test/integration/filterPath/expected/file new file mode 100644 index 000000000..d234c5e05 --- /dev/null +++ b/test/integration/filterPath/expected/file @@ -0,0 +1 @@ +test4 diff --git a/test/integration/filterPath/expected/file0 b/test/integration/filterPath/expected/file0 new file mode 100644 index 000000000..38143ad4a --- /dev/null +++ b/test/integration/filterPath/expected/file0 @@ -0,0 +1 @@ +test0 diff --git a/test/integration/filterPath/expected/file2 b/test/integration/filterPath/expected/file2 new file mode 100644 index 000000000..180cf8328 --- /dev/null +++ b/test/integration/filterPath/expected/file2 @@ -0,0 +1 @@ +test2 diff --git a/test/integration/filterPath/recording.json b/test/integration/filterPath/recording.json new file mode 100644 index 000000000..58818be45 --- /dev/null +++ b/test/integration/filterPath/recording.json @@ -0,0 +1 @@ +{"KeyEvents":[{"Timestamp":1102,"Mod":0,"Key":13,"Ch":13},{"Timestamp":1422,"Mod":0,"Key":256,"Ch":32},{"Timestamp":1591,"Mod":0,"Key":258,"Ch":0},{"Timestamp":1718,"Mod":0,"Key":256,"Ch":32},{"Timestamp":2391,"Mod":2,"Key":16,"Ch":16},{"Timestamp":3318,"Mod":0,"Key":258,"Ch":0},{"Timestamp":3454,"Mod":0,"Key":258,"Ch":0},{"Timestamp":3686,"Mod":0,"Key":13,"Ch":13},{"Timestamp":4339,"Mod":0,"Key":27,"Ch":0},{"Timestamp":4725,"Mod":0,"Key":27,"Ch":0},{"Timestamp":5591,"Mod":0,"Key":260,"Ch":0},{"Timestamp":5903,"Mod":0,"Key":260,"Ch":0},{"Timestamp":6494,"Mod":0,"Key":256,"Ch":99},{"Timestamp":7046,"Mod":0,"Key":256,"Ch":97},{"Timestamp":7102,"Mod":0,"Key":256,"Ch":115},{"Timestamp":7157,"Mod":0,"Key":256,"Ch":100},{"Timestamp":7677,"Mod":0,"Key":13,"Ch":13},{"Timestamp":8261,"Mod":0,"Key":259,"Ch":0},{"Timestamp":8558,"Mod":0,"Key":259,"Ch":0},{"Timestamp":8990,"Mod":0,"Key":258,"Ch":0},{"Timestamp":9270,"Mod":0,"Key":258,"Ch":0},{"Timestamp":9910,"Mod":0,"Key":13,"Ch":13},{"Timestamp":10614,"Mod":0,"Key":256,"Ch":32},{"Timestamp":11278,"Mod":2,"Key":16,"Ch":16},{"Timestamp":11894,"Mod":0,"Key":258,"Ch":0},{"Timestamp":12046,"Mod":0,"Key":258,"Ch":0},{"Timestamp":12335,"Mod":0,"Key":13,"Ch":13},{"Timestamp":12761,"Mod":0,"Key":27,"Ch":0},{"Timestamp":13080,"Mod":0,"Key":27,"Ch":0},{"Timestamp":13822,"Mod":0,"Key":260,"Ch":0},{"Timestamp":14022,"Mod":0,"Key":260,"Ch":0},{"Timestamp":14630,"Mod":0,"Key":256,"Ch":99},{"Timestamp":14894,"Mod":0,"Key":256,"Ch":116},{"Timestamp":14958,"Mod":0,"Key":256,"Ch":101},{"Timestamp":15150,"Mod":0,"Key":256,"Ch":115},{"Timestamp":15207,"Mod":0,"Key":256,"Ch":116},{"Timestamp":15558,"Mod":0,"Key":13,"Ch":13},{"Timestamp":16294,"Mod":0,"Key":256,"Ch":113}],"ResizeEvents":[{"Timestamp":0,"Width":272,"Height":74}]} \ No newline at end of file diff --git a/test/integration/filterPath/setup.sh b/test/integration/filterPath/setup.sh new file mode 100644 index 000000000..e766b6bdb --- /dev/null +++ b/test/integration/filterPath/setup.sh @@ -0,0 +1,31 @@ +#!/bin/sh + +cd $1 + +git init + +git config user.email "CI@example.com" +git config user.name "CI" + +# need a history of commits each containing various files + +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 test3 > file1 +echo test4 > file2 +git add . +git commit -am "file1 and file2" + +echo test4 > file +git add . +git commit -am "file" diff --git a/test/integration/filterPath/test.json b/test/integration/filterPath/test.json new file mode 100644 index 000000000..122b296b3 --- /dev/null +++ b/test/integration/filterPath/test.json @@ -0,0 +1 @@ +{ "description": "Open lazygit with a filter path given", "speed": 10, "extraCmdArgs": "-f file1" }