|
@ -1,6 +1,6 @@ |
|
|
#!/bin/bash |
|
|
#!/bin/bash |
|
|
|
|
|
|
|
|
total_commits=$(git shortlog -s -n | awk '{ sum += $1; } END { print sum; }' "$@") |
|
|
|
|
|
|
|
|
total_commits=$(git shortlog -s -n --no-merges | awk '{ sum += $1; } END { print sum; }' "$@") |
|
|
|
|
|
|
|
|
if [[ $total_commits -gt 200 ]]; then |
|
|
if [[ $total_commits -gt 200 ]]; then |
|
|
echo "Total commits: $total_commits (minimum required commits reached)" |
|
|
echo "Total commits: $total_commits (minimum required commits reached)" |
|
@ -9,4 +9,4 @@ else |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
echo "Commits per user:" |
|
|
echo "Commits per user:" |
|
|
git shortlog -s -e | sed 's/<//;s/>//' | awk '{ printf "\t%s (%s): %s\n", $2, $3, $1 }' |
|
|
|
|
|
|
|
|
git shortlog -s -e --no-merges | sed 's/<//;s/>//' | awk '{ printf "\t%s (%s): %s\n", $2, $3, $1 }' |