SigScript/Java/scripts/commit.sh

19 lines
348 B
Bash
Raw Normal View History

2022-05-17 13:01:05 +00:00
#Adds a commit message and pushes project to github repository.
#Java
COMMIT_MESSAGE="$*"
while IFS= read -r line
do
if [ "$FIRST_LINE" = true ]; then
COMMIT_MESSAGE+="
Co-authored-by: $line"
FIRST_LINE=false
else
COMMIT_MESSAGE+="
Co-authored-by: $line"
fi
done < utils/.coauthors
2022-05-17 13:01:05 +00:00
git add -u
git add *
git commit -m "$COMMIT_MESSAGE"
2022-05-17 13:01:05 +00:00
git push