mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-02-01 13:17:53 +02:00
Add integration test for reset author command.
This commit is contained in:
parent
7ac487545c
commit
1e08b90f67
@ -0,0 +1 @@
|
||||
myfile2
|
@ -0,0 +1 @@
|
||||
ref: refs/heads/master
|
10
test/integration/resetAuthor/expected/repo/.git_keep/config
Normal file
10
test/integration/resetAuthor/expected/repo/.git_keep/config
Normal file
@ -0,0 +1,10 @@
|
||||
[core]
|
||||
repositoryformatversion = 0
|
||||
filemode = true
|
||||
bare = false
|
||||
logallrefupdates = true
|
||||
ignorecase = true
|
||||
precomposeunicode = true
|
||||
[user]
|
||||
email = Author2@example.com
|
||||
name = Author2
|
@ -0,0 +1 @@
|
||||
Unnamed repository; edit this file 'description' to name the repository.
|
BIN
test/integration/resetAuthor/expected/repo/.git_keep/index
Normal file
BIN
test/integration/resetAuthor/expected/repo/.git_keep/index
Normal file
Binary file not shown.
@ -0,0 +1,6 @@
|
||||
# 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]
|
||||
# *~
|
@ -0,0 +1,3 @@
|
||||
0000000000000000000000000000000000000000 291bcc7e708303b395f52245ec988ddbc985bae3 Author1 <Author1@example.com> 1651932821 +0200 commit (initial): myfile1
|
||||
291bcc7e708303b395f52245ec988ddbc985bae3 63aff3f0f54955ea149f9c2f3c07697b8864940d Author1 <Author1@example.com> 1651932821 +0200 commit: myfile2
|
||||
63aff3f0f54955ea149f9c2f3c07697b8864940d 0714eb875f11c56a2dc8c53c148889fe43602349 Author2 <Author2@example.com> 1651932824 +0200 commit (amend): myfile2
|
@ -0,0 +1,3 @@
|
||||
0000000000000000000000000000000000000000 291bcc7e708303b395f52245ec988ddbc985bae3 Author1 <Author1@example.com> 1651932821 +0200 commit (initial): myfile1
|
||||
291bcc7e708303b395f52245ec988ddbc985bae3 63aff3f0f54955ea149f9c2f3c07697b8864940d Author1 <Author1@example.com> 1651932821 +0200 commit: myfile2
|
||||
63aff3f0f54955ea149f9c2f3c07697b8864940d 0714eb875f11c56a2dc8c53c148889fe43602349 Author2 <Author2@example.com> 1651932824 +0200 commit (amend): myfile2
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,2 @@
|
||||
x•�Q
|
||||
Â0DýÎ)ö_�lºÝ¦ ¢GÙ&,t‰”z{ƒx¿fx0oR5[ ó¡íªà•SñÂË4kÌDŠ‘sÄ X&ZhÈLEÒœ<Û½îpûÂùW®ú{lzJÕ.];â<„Ž>xï:íwMÿ:{—uStÈ×5'
|
@ -0,0 +1,2 @@
|
||||
x•ŽK
|
||||
1]çÙ’î$=iÑ£äÓÁ�‰3ôöñ®ªxPðòÚÚÜ5‚;ô]DÇÉ:ˆž«)E¤2±×D–Äd*: µÅ]#dH9O2™`�M–}õˆÎKæJI>E±*>û}ÝõíÐçŸ\åÛ¶È)¯í¢�<°Å€ ��Qc÷ºüªö®ó"¨>dB„
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1 @@
|
||||
0714eb875f11c56a2dc8c53c148889fe43602349
|
1
test/integration/resetAuthor/expected/repo/myfile1
Normal file
1
test/integration/resetAuthor/expected/repo/myfile1
Normal file
@ -0,0 +1 @@
|
||||
test1
|
1
test/integration/resetAuthor/expected/repo/myfile2
Normal file
1
test/integration/resetAuthor/expected/repo/myfile2
Normal file
@ -0,0 +1 @@
|
||||
test2
|
1
test/integration/resetAuthor/recording.json
Normal file
1
test/integration/resetAuthor/recording.json
Normal file
@ -0,0 +1 @@
|
||||
{"KeyEvents":[{"Timestamp":638,"Mod":0,"Key":256,"Ch":52},{"Timestamp":1406,"Mod":0,"Key":256,"Ch":97},{"Timestamp":2584,"Mod":0,"Key":256,"Ch":121},{"Timestamp":5654,"Mod":0,"Key":256,"Ch":113}],"ResizeEvents":[{"Timestamp":0,"Width":117,"Height":83}]}
|
20
test/integration/resetAuthor/setup.sh
Normal file
20
test/integration/resetAuthor/setup.sh
Normal file
@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
cd $1
|
||||
|
||||
git init
|
||||
|
||||
git config user.email "Author1@example.com"
|
||||
git config user.name "Author1"
|
||||
|
||||
echo test1 > myfile1
|
||||
git add .
|
||||
git commit -am "myfile1"
|
||||
echo test2 > myfile2
|
||||
git add .
|
||||
git commit -am "myfile2"
|
||||
|
||||
git config user.email "Author2@example.com"
|
||||
git config user.name "Author2"
|
1
test/integration/resetAuthor/test.json
Normal file
1
test/integration/resetAuthor/test.json
Normal file
@ -0,0 +1 @@
|
||||
{ "description": "In this test the author of a commit is reset to a different name/email.", "speed": 5 }
|
Loading…
x
Reference in New Issue
Block a user