I followed @Tim Pohlmann's answer above and ended up modifying the batch script to be:
git diff | findstr "^+// TODO:" > %2
I made this change because the original command was printing the color specifiers in the TortoiseGit commit dialog.
Additionally, I had to specify the Hook Type as "Start Commit Hook" and check the box labelled "Wait for the script to finish" in the Configure Hook Scripts dialog.
For further clarity, the %2
pipes the output of the command to TortoiseGit's commit dialog.
I looked into adding line numbers, but the git diff
command does not support adding line numbers per this post. A simple enough solution is to be more descriptive in my TODO's :)