support setting the author of a commit

update copy
This commit is contained in:
Jesse Duffield 2022-05-08 21:05:01 +10:00
parent 901ab3ac1b
commit 9591cc381a
31 changed files with 141 additions and 14 deletions

View file

@ -0,0 +1 @@
myfile3

View file

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

View 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

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

View file

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

View file

@ -0,0 +1,2 @@
x<>Q
Â0DýÎ)ö_<C3B6>ݸÝn¡ˆ%M6Xhˆz{ƒx¿fx0ob-em@"‡¶›šÄŒAq2MÌF*IÉÊ#/|NÂ9ÄÁ»ðl÷ºÃíó¯\íÊc³S¬åÒµƒGTÔ Ž„ˆ®Ó~×ìï¡+ï¼nFîÈ5'

View file

@ -0,0 +1 @@
baf3189129ba8878ba9b4107eaaaf3389287259b

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":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}]}

View 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"

View file

@ -0,0 +1,4 @@
{
"description": "In this test the author of a commit is set to a different name/email.",
"speed": 5
}