mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 12:25:47 +02:00
support setting the author of a commit
update copy
This commit is contained in:
parent
901ab3ac1b
commit
9591cc381a
31 changed files with 141 additions and 14 deletions
|
@ -0,0 +1 @@
|
|||
myfile3
|
1
test/integration/setAuthor/expected/repo/.git_keep/HEAD
Normal file
1
test/integration/setAuthor/expected/repo/.git_keep/HEAD
Normal file
|
@ -0,0 +1 @@
|
|||
ref: refs/heads/master
|
10
test/integration/setAuthor/expected/repo/.git_keep/config
Normal file
10
test/integration/setAuthor/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/setAuthor/expected/repo/.git_keep/index
Normal file
BIN
test/integration/setAuthor/expected/repo/.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,4 @@
|
|||
0000000000000000000000000000000000000000 2075aeb39a2a66a9607860a65b2a71c517760254 Author1 <Author1@example.com> 1652008089 +1000 commit (initial): myfile1
|
||||
2075aeb39a2a66a9607860a65b2a71c517760254 d01c8bb001458d0a7c01193813685c658e0355ac Author1 <Author1@example.com> 1652008089 +1000 commit: myfile2
|
||||
d01c8bb001458d0a7c01193813685c658e0355ac 8710ece70b7db9638b9645e93abdbcf210fa4595 Author2 <Author2@example.com> 1652008089 +1000 commit: myfile3
|
||||
8710ece70b7db9638b9645e93abdbcf210fa4595 baf3189129ba8878ba9b4107eaaaf3389287259b Author2 <Author2@example.com> 1652008097 +1000 commit (amend): myfile3
|
|
@ -0,0 +1,4 @@
|
|||
0000000000000000000000000000000000000000 2075aeb39a2a66a9607860a65b2a71c517760254 Author1 <Author1@example.com> 1652008089 +1000 commit (initial): myfile1
|
||||
2075aeb39a2a66a9607860a65b2a71c517760254 d01c8bb001458d0a7c01193813685c658e0355ac Author1 <Author1@example.com> 1652008089 +1000 commit: myfile2
|
||||
d01c8bb001458d0a7c01193813685c658e0355ac 8710ece70b7db9638b9645e93abdbcf210fa4595 Author2 <Author2@example.com> 1652008089 +1000 commit: myfile3
|
||||
8710ece70b7db9638b9645e93abdbcf210fa4595 baf3189129ba8878ba9b4107eaaaf3389287259b Author2 <Author2@example.com> 1652008097 +1000 commit (amend): myfile3
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,2 @@
|
|||
x•<>Q
|
||||
Â0DýÎ)ö_<C3B6>ݸÝn¡ˆ%M6Xhˆ”z{ƒx¿fx0ob-em@"‡¶›šÄŒA–q2MÌF*IÉÊ#/|NÂ9ÄÁ»ðl÷ºÃíó¯\íÊc³S¬åÒµƒGTÔ Ž„ˆ®Ó~×ìï¡+ï¼nFîÈ‹5'
|
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 @@
|
|||
baf3189129ba8878ba9b4107eaaaf3389287259b
|
1
test/integration/setAuthor/expected/repo/myfile1
Normal file
1
test/integration/setAuthor/expected/repo/myfile1
Normal file
|
@ -0,0 +1 @@
|
|||
test1
|
1
test/integration/setAuthor/expected/repo/myfile2
Normal file
1
test/integration/setAuthor/expected/repo/myfile2
Normal file
|
@ -0,0 +1 @@
|
|||
test2
|
1
test/integration/setAuthor/expected/repo/myfile3
Normal file
1
test/integration/setAuthor/expected/repo/myfile3
Normal file
|
@ -0,0 +1 @@
|
|||
test3
|
1
test/integration/setAuthor/recording.json
Normal file
1
test/integration/setAuthor/recording.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"KeyEvents":[{"Timestamp":1118,"Mod":0,"Key":259,"Ch":0},{"Timestamp":1382,"Mod":0,"Key":259,"Ch":0},{"Timestamp":2654,"Mod":0,"Key":256,"Ch":97},{"Timestamp":3632,"Mod":0,"Key":258,"Ch":0},{"Timestamp":4070,"Mod":0,"Key":13,"Ch":13},{"Timestamp":6702,"Mod":0,"Key":9,"Ch":9},{"Timestamp":7486,"Mod":0,"Key":258,"Ch":0},{"Timestamp":7899,"Mod":0,"Key":13,"Ch":13},{"Timestamp":9141,"Mod":0,"Key":256,"Ch":113}],"ResizeEvents":[{"Timestamp":0,"Width":272,"Height":74}]}
|
24
test/integration/setAuthor/setup.sh
Normal file
24
test/integration/setAuthor/setup.sh
Normal file
|
@ -0,0 +1,24 @@
|
|||
#!/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"
|
||||
|
||||
echo test3 > myfile3
|
||||
git add .
|
||||
git commit -am "myfile3"
|
4
test/integration/setAuthor/test.json
Normal file
4
test/integration/setAuthor/test.json
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"description": "In this test the author of a commit is set to a different name/email.",
|
||||
"speed": 5
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue