mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 15:46:26 -04:00
add filter path test
This commit is contained in:
parent
27525f1d42
commit
38739b16bc
|
|
@ -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<01>ŽK
|
||||
Ã0»ö)¼/KþH<C3BE>R
|
||||
YåŠ-Ó@Ò„àB<C3A0>_¡ÛÇÌðò¾mK³0à¥<C3A0>ªvPf!W2ÆRPê\Kt@I+±3ú9c6‡œúnÖyˆ‘(<28>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チ<77>w.ス<><EFBDBD>モ[H
|
||||
矢y<E79FA2>5<EFBFBD>来ミ(桍ァ^-ン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‹—·Öć¤éŇđ> <09>cÔś<C394>Ź•#ĆjB±%›j˛ Z
|
||||
BjçCÖ¶¦$ÎŐ„<C590>ĺÂČÚ&´Őáŕ˘7ľqÁ<71>â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" }
|
||||
Loading…
Reference in a new issue