From 320d1ba38979d9bdf9f38ed8cbc3bd737d691537 Mon Sep 17 00:00:00 2001 From: LPeter1997 Date: Tue, 28 Nov 2023 21:06:50 +0100 Subject: [PATCH] Create count_todos.ps1 (#343) --- scripts/count_todos.ps1 | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 scripts/count_todos.ps1 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