mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-08-13 20:04:25 +02:00
add filter path test
This commit is contained in:
@@ -0,0 +1 @@
|
||||
test
|
1
test/integration/filterPath/expected/.git_keep/HEAD
Normal file
1
test/integration/filterPath/expected/.git_keep/HEAD
Normal file
@@ -0,0 +1 @@
|
||||
ref: refs/heads/master
|
10
test/integration/filterPath/expected/.git_keep/config
Normal file
10
test/integration/filterPath/expected/.git_keep/config
Normal file
@@ -0,0 +1,10 @@
|
||||
[core]
|
||||
repositoryformatversion = 0
|
||||
filemode = true
|
||||
bare = false
|
||||
logallrefupdates = true
|
||||
ignorecase = true
|
||||
precomposeunicode = true
|
||||
[user]
|
||||
email = CI@example.com
|
||||
name = CI
|
@@ -0,0 +1 @@
|
||||
Unnamed repository; edit this file 'description' to name the repository.
|
BIN
test/integration/filterPath/expected/.git_keep/index
Normal file
BIN
test/integration/filterPath/expected/.git_keep/index
Normal file
Binary file not shown.
@@ -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
|
7
test/integration/filterPath/expected/.git_keep/logs/HEAD
Normal file
7
test/integration/filterPath/expected/.git_keep/logs/HEAD
Normal file
@@ -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
|
@@ -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
|
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.
@@ -0,0 +1,5 @@
|
||||
x��K
|
||||
�0��)�/K�H�R
|
||||
Y��-�@҄�B�_�������mK�0ढ़�vPf!W2�RP�\Kt@I+�3�9c6���n�y��(�W�����=������g1�i����d���ԯlǪ��o��SD
|
||||
�
|
||||
�9��~�韸�˪h~a�96
|
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��I5`������ֶw���w.��h�T�[H
|
||||
��y�W5�Ɨ��(�|�^-�W(x9
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,3 @@
|
||||
x��K
|
||||
�0@]��$3�D��z�I2�BӖ��[o���x���������> �cԜ���#�jB�%�j� Z
|
||||
Bj�C���$�Մ�����&�����7�q���wm����)n�"����C��%o��Zku�s�˟���"���/�+<|
|
@@ -0,0 +1 @@
|
||||
d69102e71a2f400fe52feab06516e05cdaf7d0ba
|
1
test/integration/filterPath/expected/file
Normal file
1
test/integration/filterPath/expected/file
Normal file
@@ -0,0 +1 @@
|
||||
test4
|
1
test/integration/filterPath/expected/file0
Normal file
1
test/integration/filterPath/expected/file0
Normal file
@@ -0,0 +1 @@
|
||||
test0
|
1
test/integration/filterPath/expected/file2
Normal file
1
test/integration/filterPath/expected/file2
Normal file
@@ -0,0 +1 @@
|
||||
test2
|
1
test/integration/filterPath/recording.json
Normal file
1
test/integration/filterPath/recording.json
Normal file
@@ -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}]}
|
31
test/integration/filterPath/setup.sh
Normal file
31
test/integration/filterPath/setup.sh
Normal file
@@ -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"
|
1
test/integration/filterPath/test.json
Normal file
1
test/integration/filterPath/test.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "description": "Open lazygit with a filter path given", "speed": 10, "extraCmdArgs": "-f file1" }
|
Reference in New Issue
Block a user