Make co-authors be included in commits and have a co-authors file
Co-authored-by: sigonasr2 Co-authored-by: <sigonasr2@gmail.com>
This commit is contained in:
parent
aa2d9991aa
commit
ae27308254
@ -1,6 +1,13 @@
|
||||
#Adds a commit message and pushes project to github repository.
|
||||
#Java
|
||||
AUTHORS=$(cat utils/.coauthors)
|
||||
COMMIT_MESSAGE="$*"
|
||||
for a in $AUTHORS
|
||||
do
|
||||
COMMIT_MESSAGE+="
|
||||
Co-authored-by: $a"
|
||||
done
|
||||
git add -u
|
||||
git add *
|
||||
git commit -m "$*"
|
||||
git commit -m "$COMMIT_MESSAGE"
|
||||
git push
|
@ -1,4 +1,4 @@
|
||||
a833e7598ad65672a9c01306d244b49f -
|
||||
96ce35f2d2dcb555421e00a6afda23ca -
|
||||
fe50a24283991ac63984a3afcac1ac41 -
|
||||
b568ecdedf40d35455e1b7998a6f720c -
|
||||
2ac636f584c43a1124affb9ea6bdc7bf -
|
||||
|
@ -7,11 +7,18 @@ find . -type f -name md5 -delete
|
||||
|
||||
#Generate a new hash for every sub-directory, which may require an update.
|
||||
FILES=$(cat utils/.updateDirectories)
|
||||
AUTHORS=$(cat utils/.coauthors)
|
||||
COMMIT_MESSAGE="$*"
|
||||
for a in $AUTHORS
|
||||
do
|
||||
COMMIT_MESSAGE+="
|
||||
Co-authored-by: $a"
|
||||
done
|
||||
for f in $FILES
|
||||
do
|
||||
search $f
|
||||
done
|
||||
git add -u
|
||||
git add *
|
||||
git commit -m "$*"
|
||||
git commit -m "$COMMIT_MESSAGE"
|
||||
git push
|
@ -1 +1 @@
|
||||
a3da4bec284acda7002e1f7704457351 -
|
||||
5f7a73b1831ca754331307f8354cc5cd -
|
||||
|
1
utils/.coauthors
Normal file
1
utils/.coauthors
Normal file
@ -0,0 +1 @@
|
||||
sigonasr2 <sigonasr2@gmail.com>
|
Loading…
x
Reference in New Issue
Block a user