4 commit_timeframe
="$(date --date="5 years ago
" +%Y-%m-%d)"
13 printf "### Recently active contributors:\n"
14 printf "[Active period begin-end] Commits (Alltime) Name <Mail>\n"
16 for line
in $
(git log
--since $commit_timeframe --format="|%aN <%aE>" |
sort |
uniq -c |
sort -nr); do
17 count
="${line%% |*}"; count
="${count##* }"
20 if [ $count -lt $commit_threshold ]; then
24 ACTIVE_PEOPLE
="$ACTIVE_PEOPLE$name$NL"
26 alltime
="$(git log --use-mailmap --author="$name" --format="%aN
" | wc -l)"
27 begin
="$(git log --use-mailmap --author="$name" --format="%cd" --date="format
:%Y-
%m-
%d
" --reverse | head -n1)"
28 end
="$(git log --use-mailmap --author="$name" --format="%cd" --date="format
:%Y-
%m-
%d
" -1)"
30 printf "[%s - %s] %5d (%5d) %s\n" $begin $end $count $alltime "$name"
34 printf "### Important all-time contributors:\n"
35 printf "[Active period begin-end] Commits Name <Mail>\n"
37 for line
in $
(git log
--format="|%aN <%aE>" |
sort |
uniq -c |
sort -nr); do
38 count
="${line%% |*}"; count
="${count##* }"
41 if [ $count -lt $commit_threshold ] ||
echo "$ACTIVE_PEOPLE" |
grep -qxF "$name"; then
45 begin
="$(git log --use-mailmap --author="$name" --format="%cd" --date="format
:%Y-
%m-
%d
" --reverse | head -n1)"
46 end
="$(git log --use-mailmap --author="$name" --format="%cd" --date="format
:%Y-
%m-
%d
" -1)"
48 printf "[%s - %s] %5d %s\n" $begin $end $count "$name"