Skip to content

Instantly share code, notes, and snippets.

@mgiuffrida
Created June 3, 2017 01:49
Show Gist options
  • Save mgiuffrida/472dc878a62debfee60ddba889a272ae to your computer and use it in GitHub Desktop.
Save mgiuffrida/472dc878a62debfee60ddba889a272ae to your computer and use it in GitHub Desktop.
count lines attributed to each user
#!/bin/sh
DIRS=(
chrome/browser/ui/webui/settings/
chrome/browser/resources/settings/
chrome/test/data/webui/settings/
ui/webui/resources/cr_elements/cr_dialog/
ui/webui/resources/cr_elements/policy/
ui/webui/resources/cr_elements/network/
)
FILES=(
ui/webui/resources/cr_elements/shared_style_css.html
ui/webui/resources/cr_elements/shared_vars_css.html
chrome/app/settings_*
)
set -e
git ls-files HEAD -- ${DIRS[@]} ${FILES[@]} |
while read f; do
git blame --line-porcelain "$f" | grep '^author ';
done |
sort -f | uniq -ic | sort -n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment