-
-
Save nuhkoca/cd60820531a4f9c8440c70318d6e3407 to your computer and use it in GitHub Desktop.
runs linguist on ever commit since a date
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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