This commit is contained in:
Joseph Geis 2020-10-03 21:39:29 -07:00 committed by GitHub
commit 5fb23b11c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

12
git-blame-someone-else Normal file → Executable file
View file

@ -16,4 +16,14 @@ COMMIT=$(git rev-parse --short $2)
git rebase --continue
} &> /dev/null
echo "$AUTHOR_NAME is now the author of $COMMIT. You're officially an asshole.";
INSULTS=(
"You're officially an asshole."
"Great job."
"You dirty animal."
"They owe you one."
)
INDEX=$(($RANDOM % ${#INSULTS[@]}))
echo "$AUTHOR_NAME is now the author of $COMMIT. ${INSULTS[$INDEX]}";