mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 12:25:47 +02:00
allow adding whole diff to patch
this was causing a panic add integration test for toggling all commit files
This commit is contained in:
parent
5ded030a88
commit
cc5d13c833
34 changed files with 103 additions and 28 deletions
|
@ -0,0 +1 @@
|
|||
blah
|
|
@ -0,0 +1 @@
|
|||
ref: refs/heads/master
|
|
@ -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/patchBuildingToggleAll/expected/.git_keep/index
Normal file
BIN
test/integration/patchBuildingToggleAll/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
|
|
@ -0,0 +1,2 @@
|
|||
0000000000000000000000000000000000000000 7028eaec19b2723b62690974057c92ba7d8c1b11 CI <CI@example.com> 1648038005 +1100 commit (initial): first commit
|
||||
7028eaec19b2723b62690974057c92ba7d8c1b11 cf149a94a18c990b2c5cdd0cf15ec4880f51c8b0 CI <CI@example.com> 1648038005 +1100 commit: blah
|
|
@ -0,0 +1,2 @@
|
|||
0000000000000000000000000000000000000000 7028eaec19b2723b62690974057c92ba7d8c1b11 CI <CI@example.com> 1648038005 +1100 commit (initial): first commit
|
||||
7028eaec19b2723b62690974057c92ba7d8c1b11 cf149a94a18c990b2c5cdd0cf15ec4880f51c8b0 CI <CI@example.com> 1648038005 +1100 commit: blah
|
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,4 @@
|
|||
x<01>ÎM
|
||||
Â@@a×sŠÙ’ÌADèªÇHÒ”
|
||||
[Êß9‚ÛÇ·x²×új¼´SÕ„Èi¦ "=R ž]`\’D<FØtê»Ù®(i·ì²óœ\`Èb–Á1å¹2¢¡O[÷ÓŽ“½<E2809C>ÓS¿T<C2BF>Mo²×‡Å
|
||||
øíÀôÚ§šþÉ
o´š×8ß
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
cf149a94a18c990b2c5cdd0cf15ec4880f51c8b0
|
|
@ -0,0 +1 @@
|
|||
test3
|
1
test/integration/patchBuildingToggleAll/recording.json
Normal file
1
test/integration/patchBuildingToggleAll/recording.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"KeyEvents":[{"Timestamp":624,"Mod":0,"Key":259,"Ch":0},{"Timestamp":813,"Mod":0,"Key":259,"Ch":0},{"Timestamp":1216,"Mod":0,"Key":13,"Ch":13},{"Timestamp":1841,"Mod":0,"Key":256,"Ch":97},{"Timestamp":2456,"Mod":0,"Key":258,"Ch":0},{"Timestamp":2624,"Mod":0,"Key":258,"Ch":0},{"Timestamp":2841,"Mod":0,"Key":256,"Ch":32},{"Timestamp":3600,"Mod":2,"Key":16,"Ch":16},{"Timestamp":4795,"Mod":0,"Key":258,"Ch":0},{"Timestamp":5193,"Mod":0,"Key":258,"Ch":0},{"Timestamp":5696,"Mod":0,"Key":13,"Ch":13},{"Timestamp":7345,"Mod":0,"Key":256,"Ch":113}],"ResizeEvents":[{"Timestamp":0,"Width":272,"Height":74}]}
|
23
test/integration/patchBuildingToggleAll/setup.sh
Normal file
23
test/integration/patchBuildingToggleAll/setup.sh
Normal file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
cd $1
|
||||
|
||||
git init
|
||||
|
||||
git config user.email "CI@example.com"
|
||||
git config user.name "CI"
|
||||
|
||||
git commit --allow-empty -m "first commit"
|
||||
|
||||
mkdir -p one/two/three
|
||||
echo test1 > one/two/three/file1
|
||||
echo test2 > one/two/three/file2
|
||||
echo test3 > one/two/three/file3
|
||||
echo test4 > one/two/three/file4
|
||||
echo test5 > one/two/file1
|
||||
echo test6 > one/two/file2
|
||||
|
||||
git add .
|
||||
git commit -m "blah"
|
1
test/integration/patchBuildingToggleAll/test.json
Normal file
1
test/integration/patchBuildingToggleAll/test.json
Normal file
|
@ -0,0 +1 @@
|
|||
{ "description": "messing with our patch building flow in both flat and tree view", "speed": 10 }
|
Loading…
Add table
Add a link
Reference in a new issue