Skip to content

Instantly share code, notes, and snippets.

@ggrell
Forked from burntcookie90/linguist-runner.sh
Created November 11, 2019 13:03
Show Gist options
  • Save ggrell/35a5366b25413618d80b4c4832834b5f to your computer and use it in GitHub Desktop.
Save ggrell/35a5366b25413618d80b4c4832834b5f to your computer and use it in GitHub Desktop.
runs linguist on ever commit since a date
#!/usr/bin/bash
for commit in $(git --no-pager log --reverse --after="2016-10-01T10:36:00-07:00" --pretty=format:%H)
do
echo $commit
git checkout $commit
#write linguist data to a file
echo "" >> ~/repo-linguist-report.txt
echo "commit: $commit" >> ~/repo-linguist-report.txt
github-linguist >> ~/repo-linguist-report.txt
#write commit dates to another file, because we're lazy
echo "commit: $commit" >> ~/repo-commit-dates.txt
git show -s --format=%ci $commit >> ~/repo-commit-dates.txt
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment