1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

add integration test for rewording old commit

This commit is contained in:
Jesse Duffield
2022-01-09 14:05:33 +11:00
parent e5096e71ab
commit 3b30b9bba2
63 changed files with 73 additions and 0 deletions

View File

@ -0,0 +1 @@
file1 2

View File

@ -0,0 +1 @@
ref: refs/heads/master

View File

@ -0,0 +1 @@
3c3125afd7a6475dcdd4c4a6b20cc920b31eb96f

View 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

View File

@ -0,0 +1 @@
Unnamed repository; edit this file 'description' to name the repository.

View File

@ -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

View File

@ -0,0 +1,9 @@
0000000000000000000000000000000000000000 4479c0a1c7e43a55a3a6909be88a810dbad3fc42 CI <CI@example.com> 1641696830 +1100 commit (initial): file0
4479c0a1c7e43a55a3a6909be88a810dbad3fc42 3c3125afd7a6475dcdd4c4a6b20cc920b31eb96f CI <CI@example.com> 1641696830 +1100 commit: file1
3c3125afd7a6475dcdd4c4a6b20cc920b31eb96f 7c5b8c907caad01842aa84e91b7d4724d57de4fd CI <CI@example.com> 1641696830 +1100 commit: file2
7c5b8c907caad01842aa84e91b7d4724d57de4fd 7c5b8c907caad01842aa84e91b7d4724d57de4fd CI <CI@example.com> 1641696835 +1100 rebase: updating HEAD
7c5b8c907caad01842aa84e91b7d4724d57de4fd 4479c0a1c7e43a55a3a6909be88a810dbad3fc42 CI <CI@example.com> 1641696835 +1100 rebase -i (start): checkout 4479c0a1c7e43a55a3a6909be88a810dbad3fc42
4479c0a1c7e43a55a3a6909be88a810dbad3fc42 3c3125afd7a6475dcdd4c4a6b20cc920b31eb96f CI <CI@example.com> 1641696835 +1100 rebase -i: fast-forward
3c3125afd7a6475dcdd4c4a6b20cc920b31eb96f 1bcb7e30b3a5a5ae64397dcfe6b74cc18fc55784 CI <CI@example.com> 1641696835 +1100 commit (amend): file1 2
1bcb7e30b3a5a5ae64397dcfe6b74cc18fc55784 9d793e4fc04a0583eed7670d52fbb16b402f7499 CI <CI@example.com> 1641696835 +1100 rebase -i (pick): file2
9d793e4fc04a0583eed7670d52fbb16b402f7499 9d793e4fc04a0583eed7670d52fbb16b402f7499 CI <CI@example.com> 1641696835 +1100 rebase -i (finish): returning to refs/heads/master

View File

@ -0,0 +1,4 @@
0000000000000000000000000000000000000000 4479c0a1c7e43a55a3a6909be88a810dbad3fc42 CI <CI@example.com> 1641696830 +1100 commit (initial): file0
4479c0a1c7e43a55a3a6909be88a810dbad3fc42 3c3125afd7a6475dcdd4c4a6b20cc920b31eb96f CI <CI@example.com> 1641696830 +1100 commit: file1
3c3125afd7a6475dcdd4c4a6b20cc920b31eb96f 7c5b8c907caad01842aa84e91b7d4724d57de4fd CI <CI@example.com> 1641696830 +1100 commit: file2
7c5b8c907caad01842aa84e91b7d4724d57de4fd 9d793e4fc04a0583eed7670d52fbb16b402f7499 CI <CI@example.com> 1641696835 +1100 rebase -i (finish): refs/heads/master onto 4479c0a1c7e43a55a3a6909be88a810dbad3fc42

View File

@ -0,0 +1,4 @@
x<01><>Aj1 <0C><><EFBFBD><EFBFBD><14><17>J d<><55>d<12>3aƁ<1E><><EFBFBD>><3E><><07>_<EFBFBD><5F><EFBFBD>Å<EFBFBD>c5s<35><14>A C<>
Z<>VC֒H<><48>1LO^<5E>1\<5C>4<EFBFBD>T_<54>Y=fB<66>0<17>PSQæ<51>^|<7C>qF
<EFBFBD><EFBFBD>
#e<>:<3A><><EFBFBD>x<EFBFBD>l<EFBFBD><6C><EFBFBD><EFBFBD>`<60>׸-<2D>;_<><5F><EFBFBD>r<EFBFBD>_<EFBFBD><5F>;<3B>ҿd<>\3<><33>><01><><EFBFBD>u<EFBFBD><18>&<26><><0F>y<EFBFBD><79><EFBFBD><EFBFBD>7<EFBFBD>6x<36><78>G<>L}

View File

@ -0,0 +1,2 @@
x+)JMU03c040031QH<51><48>I5`<60><10><><EFBFBD><EFBFBD><EFBFBD>ֶw<D6B6><77><EFBFBD>w.<2E><>h<EFBFBD>T<EFBFBD>[H
<19><>y<EFBFBD>W5<57>Ɨ<EFBFBD><C697>(<28>|<7C> ^-<2D>W(x9

View File

@ -0,0 +1 @@
9d793e4fc04a0583eed7670d52fbb16b402f7499

View File

@ -0,0 +1 @@
test0

View File

@ -0,0 +1 @@
test1

View File

@ -0,0 +1 @@
test2

View File

@ -0,0 +1 @@
test3

View File

@ -0,0 +1 @@
{"KeyEvents":[{"Timestamp":1013,"Mod":0,"Key":259,"Ch":0},{"Timestamp":1332,"Mod":0,"Key":259,"Ch":0},{"Timestamp":1811,"Mod":0,"Key":258,"Ch":0},{"Timestamp":2643,"Mod":0,"Key":256,"Ch":114},{"Timestamp":3269,"Mod":0,"Key":256,"Ch":32},{"Timestamp":3795,"Mod":0,"Key":256,"Ch":50},{"Timestamp":4420,"Mod":0,"Key":13,"Ch":13},{"Timestamp":5859,"Mod":0,"Key":256,"Ch":113}],"ResizeEvents":[{"Timestamp":0,"Width":272,"Height":74}]}

View File

@ -0,0 +1,23 @@
#!/bin/sh
cd $1
git init
git config user.email "CI@example.com"
git config user.name "CI"
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 > file3
git add .

View File

@ -0,0 +1,4 @@
{
"description": "Rewording old commit",
"speed": 20
}