Skip to content

Instantly share code, notes, and snippets.

@bharadwaj-raju
Last active October 1, 2016 17:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bharadwaj-raju/58b5f890a9adad5385c73f189522da8e to your computer and use it in GitHub Desktop.
Save bharadwaj-raju/58b5f890a9adad5385c73f189522da8e to your computer and use it in GitHub Desktop.
#!/bin/sh
# Show list of todos before commit
SOURCE_CODE_GLOB='*.py'
find -name $SOURCE_CODE_GLOB -exec grep TODO {} /dev/null \; | sed -e 's/\t//g;s/.py:/.py: \t/g;s/.py:.*#/\t/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment