diff --git a/scripts/count_todos.ps1 b/scripts/count_todos.ps1 new file mode 100644 index 000000000..65f3ec526 --- /dev/null +++ b/scripts/count_todos.ps1 @@ -0,0 +1,9 @@ +git stash +$commits = git rev-list --reverse HEAD +foreach ($commit in $commits) { + git checkout $commit >$null 2>&1 + $date = git show -s --format='%ci' $commit + $todos = git ls-files .. | xargs grep -i todo | wc -l + Write-Output "${commit};${date};${todos}" +} +git stash pop