Page MenuHomePhabricator
Paste P8544

Commits by number of root directory entries touched
ActivePublic

Authored by Lucas_Werkmeister_WMDE on May 19 2019, 5:26 PM.
Referenced Files
F29139829: raw.txt
May 19 2019, 5:26 PM
Subscribers
None
#!/bin/bash
git log \
--invert-grep --author='<l10n-bot@translatewiki.net>' \
--no-merges \
--name-only --pretty=format: \
--since='2 years ago' |
{
declare -A lines
while read -r line; do
if [[ $line ]]; then
lines[${line/\/*/}]=0
else
printf '%d\n' "${#lines[@]}"
lines=()
fi
done
} |
sort |
uniq -c |
awk '
{
total+=$1
print
}
END {
printf "%7d TOTAL\n", total
}'