You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
348 B
19 lines
348 B
3 years ago
|
#Adds a commit message and pushes project to github repository.
|
||
3 years ago
|
#Java
|
||
3 years ago
|
COMMIT_MESSAGE="$*"
|
||
|
while IFS= read -r line
|
||
|
do
|
||
3 years ago
|
if [ "$FIRST_LINE" = true ]; then
|
||
3 years ago
|
COMMIT_MESSAGE+="
|
||
|
|
||
|
Co-authored-by: $line"
|
||
3 years ago
|
FIRST_LINE=false
|
||
|
else
|
||
|
COMMIT_MESSAGE+="
|
||
|
Co-authored-by: $line"
|
||
|
fi
|
||
3 years ago
|
done < utils/.coauthors
|
||
3 years ago
|
git add -u
|
||
|
git add *
|
||
3 years ago
|
git commit -m "$COMMIT_MESSAGE"
|
||
3 years ago
|
git push
|