diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-06 09:49:36 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-06 19:34:32 +1000 |
commit | 38739b16bcb339817cda5bcb5a07379635790184 (patch) | |
tree | c20dc72538a34242446574add330217a8c47b34a /test | |
parent | 27525f1d426a4ec4e4a0d29ea05d42a8804e996c (diff) |
add filter path test
Diffstat (limited to 'test')
35 files changed, 81 insertions, 0 deletions
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 --- /dev/null +++ b/test/integration/filterPath/expected/.git_keep/FETCH_HEAD 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 Binary files differnew file mode 100644 index 000000000..c1d9597bd --- /dev/null +++ b/test/integration/filterPath/expected/.git_keep/index diff --git a/test/integration/filterPath/expected/.git_keep/info/exclude b/test/integration/filterPath/expected/.git_keep/info/exclude new file mode 100644 index 000000000..8e9f2071f --- /dev/null +++ b/test/integration/filterPath/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/filterPath/expected/.git_keep/logs/HEAD b/test/integration/filterPath/expected/.git_keep/logs/HEAD new file mode 100644 index 000000000..1f153be50 --- /dev/null +++ b/test/integration/filterPath/expected/.git_keep/logs/HEAD @@ -0,0 +1,7 @@ +0000000000000000000000000000000000000000 4c2d0500178f2642effb990e6d65e073022bf50b CI <CI@example.com> 1617665274 +1000 commit (initial): file0 +4c2d0500178f2642effb990e6d65e073022bf50b 0315577613e2e65683d0dcf3371940a44ea073ca CI <CI@example.com> 1617665274 +1000 commit: file1 +0315577613e2e65683d0dcf3371940a44ea073ca 5fbbe6422fb135ada1a05b15f61369747d4e6842 CI <CI@example.com> 1617665274 +1000 commit: file2 +5fbbe6422fb135ada1a05b15f61369747d4e6842 f712b0a288ced6c49e6cfcf16f7af0991e50849d CI <CI@example.com> 1617665274 +1000 commit: file1 and file2 +f712b0a288ced6c49e6cfcf16f7af0991e50849d 5192ae05adf946800910d092fb406eb04d56a578 CI <CI@example.com> 1617665274 +1000 commit: file +5192ae05adf946800910d092fb406eb04d56a578 667b767bf067438c08d47c54fe756a34f238b90d CI <CI@example.com> 1617665282 +1000 commit: asd +667b767bf067438c08d47c54fe756a34f238b90d d69102e71a2f400fe52feab06516e05cdaf7d0ba CI <CI@example.com> 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 <CI@example.com> 1617665274 +1000 commit (initial): file0 +4c2d0500178f2642effb990e6d65e073022bf50b 0315577613e2e65683d0dcf3371940a44ea073ca CI <CI@example.com> 1617665274 +1000 commit: file1 +0315577613e2e65683d0dcf3371940a44ea073ca 5fbbe6422fb135ada1a05b15f61369747d4e6842 CI <CI@example.com> 1617665274 +1000 commit: file2 +5fbbe6422fb135ada1a05b15f61369747d4e6842 f712b0a288ced6c49e6cfcf16f7af0991e50849d CI <CI@example.com> 1617665274 +1000 commit: file1 and file2 +f712b0a288ced6c49e6cfcf16f7af0991e50849d 5192ae05adf946800910d092fb406eb04d56a578 CI <CI@example.com> 1617665274 +1000 commit: file +5192ae05adf946800910d092fb406eb04d56a578 667b767bf067438c08d47c54fe756a34f238b90d CI <CI@example.com> 1617665282 +1000 commit: asd +667b767bf067438c08d47c54fe756a34f238b90d d69102e71a2f400fe52feab06516e05cdaf7d0ba CI <CI@example.com> 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 Binary files differnew file mode 100644 index 000000000..bff83ef7b --- /dev/null +++ b/test/integration/filterPath/expected/.git_keep/objects/03/15577613e2e65683d0dcf3371940a44ea073ca diff --git a/test/integration/filterPath/expected/.git_keep/objects/18/0cf8328022becee9aaa2577a8f84ea2b9f3827 b/test/integration/filterPath/expected/.git_keep/objects/18/0cf8328022becee9aaa2577a8f84ea2b9f3827 Binary files differnew file mode 100644 index 000000000..f74bf2335 --- /dev/null +++ b/test/integration/filterPath/expected/.git_keep/objects/18/0cf8328022becee9aaa2577a8f84ea2b9f3827 diff --git a/test/integration/filterPath/expected/.git_keep/objects/1e/3e67b999db1576ad1ee08bf4f02bdf29e49442 b/test/integration/filterPath/expected/.git_keep/objects/1e/3e67b999db1576ad1ee08bf4f02bdf29e49442 Binary files differnew file mode 100644 index 000000000..79fcadf67 --- /dev/null +++ b/test/integration/filterPath/expected/.git_keep/objects/1e/3e67b999db1576ad1ee08bf4f02bdf29e49442 diff --git a/test/integration/filterPath/expected/.git_keep/objects/2e/a97a56215f6adbe991eaf0dcf61c7086880ea5 b/test/integration/filterPath/expected/.git_keep/objects/2e/a97a56215f6adbe991eaf0dcf61c7086880ea5 Binary files differnew file mode 100644 index 000000000..0790c9b90 --- /dev/null +++ b/test/integration/filterPath/expected/.git_keep/objects/2e/a97a56215f6adbe991eaf0dcf61c7086880ea5 diff --git a/test/integration/filterPath/expected/.git_keep/objects/38/143ad4a0fe2ab6ee53c2ef89a5d9e2bd9535da b/test/integration/filterPath/expected/.git_keep/objects/38/143ad4a0fe2ab6ee53c2ef89a5d9e2bd9535da Binary files differnew file mode 100644 index 000000000..06c9cb73d --- /dev/null +++ b/test/integration/filterPath/expected/.git_keep/objects/38/143ad4a0fe2ab6ee53c2ef89a5d9e2bd9535da diff --git a/test/integration/filterPath/expected/.git_keep/objects/4c/2d0500178f2642effb990e6d65e073022bf50b b/test/integration/filterPath/expected/.git_keep/objects/4c/2d0500178f2642effb990e6d65e073022bf50b Binary files differnew file mode 100644 index 000000000..f1b52c23b --- /dev/null +++ b/test/integration/filterPath/expected/.git_keep/objects/4c/2d0500178f2642effb990e6d65e073022bf50b diff --git a/test/integration/filterPath/expected/.git_keep/objects/51/92ae05adf946800910d092fb406eb04d56a578 b/test/integration/filterPath/expected/.git_keep/objects/51/92ae05adf946800910d092fb406eb04d56a578 Binary files differnew file mode 100644 index 000000000..eeac8dd8d --- /dev/null +++ b/test/integration/filterPath/expected/.git_keep/objects/51/92ae05adf946800910d092fb406eb04d56a578 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ǪoSD + +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 Binary files differnew file mode 100644 index 000000000..a53d114d7 --- /dev/null +++ b/test/integration/filterPath/expected/.git_keep/objects/66/7b767bf067438c08d47c54fe756a34f238b90d diff --git a/test/integration/filterPath/expected/.git_keep/objects/77/9de836a10ac879fa919f48d5dc4f4ce11528e2 b/test/integration/filterPath/expected/.git_keep/objects/77/9de836a10ac879fa919f48d5dc4f4ce11528e2 Binary files differnew file mode 100644 index 000000000..ad968bd2f --- /dev/null +++ b/test/integration/filterPath/expected/.git_keep/objects/77/9de836a10ac879fa919f48d5dc4f4ce11528e2 diff --git a/test/integration/filterPath/expected/.git_keep/objects/84/b823dc5fc92fcf08eb8c8545716232ce49bd45 b/test/integration/filterPath/expected/.git_keep/objects/84/b823dc5fc92fcf08eb8c8545716232ce49bd45 Binary files differnew file mode 100644 index 000000000..e51e74d64 --- /dev/null +++ b/test/integration/filterPath/expected/.git_keep/objects/84/b823dc5fc92fcf08eb8c8545716232ce49bd45 diff --git a/test/integration/filterPath/expected/.git_keep/objects/9e/88a70dc8d82dd2afbfd50176ef78e18823bc2c b/test/integration/filterPath/expected/.git_keep/objects/9e/88a70dc8d82dd2afbfd50176ef78e18823bc2c Binary files differnew file mode 100644 index 000000000..0e95eb06d --- /dev/null +++ b/test/integration/filterPath/expected/.git_keep/objects/9e/88a70dc8d82dd2afbfd50176ef78e18823bc2c diff --git a/test/integration/filterPath/expected/.git_keep/objects/a5/bce3fd2565d8f458555a0c6f42d0504a848bd5 b/test/integration/filterPath/expected/.git_keep/objects/a5/bce3fd2565d8f458555a0c6f42d0504a848bd5 Binary files differnew file mode 100644 index 000000000..285df3e5f --- /dev/null +++ b/test/integration/filterPath/expected/.git_keep/objects/a5/bce3fd2565d8f458555a0c6f42d0504a848bd5 diff --git a/test/integration/filterPath/expected/.git_keep/objects/b7/c728d5b4e9dfc210ec19f0549f25c94b766e4e b/test/integration/filterPath/expected/.git_keep/objects/b7/c728d5b4e9dfc210ec19f0549f25c94b766e4e Binary files differnew file mode 100644 index 000000000..997378000 --- /dev/null +++ b/test/integration/filterPath/expected/.git_keep/objects/b7/c728d5b4e9dfc210ec19f0549f25c94b766e4e 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 Binary files differnew file mode 100644 index 000000000..d39fa7d2f --- /dev/null +++ b/test/integration/filterPath/expected/.git_keep/objects/d2/34c5e057fe32c676ea67e8cb38f4625ddaeb54 diff --git a/test/integration/filterPath/expected/.git_keep/objects/d6/9102e71a2f400fe52feab06516e05cdaf7d0ba b/test/integration/filterPath/expected/.git_keep/objects/d6/9102e71a2f400fe52feab06516e05cdaf7d0ba Binary files differnew file mode 100644 index 000000000..442dcf720 --- /dev/null +++ b/test/integration/filterPath/expected/.git_keep/objects/d6/9102e71a2f400fe52feab06516e05cdaf7d0ba diff --git a/test/integration/filterPath/expected/.git_keep/objects/df/6b0d2bcc76e6ec0fca20c227104a4f28bac41b b/test/integration/filterPath/expected/.git_keep/objects/df/6b0d2bcc76e6ec0fca20c227104a4f28bac41b Binary files differnew file mode 100644 index 000000000..9b771fc2f --- /dev/null +++ b/test/integration/filterPath/expected/.git_keep/objects/df/6b0d2bcc76e6ec0fca20c227104a4f28bac41b 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" } |