Last Updated: February 25, 2016
·
2.153K
· hauleth

Search all todos and fix requests in repo

Just add this line to your global .gitconfig at [alias] section

fixme = grep --heading --break --ignore-case -e 'FIX: *' -e 'FIXME: *'
todo  = grep --heading --break --ignore-case -e 'TODO: *'

and then if you run

$ git todo

you get all todos and fixes requests in your repo.

6 Responses
Add your response

That was great! Thanks.

over 1 year ago ·

Yes, thanks for that!

over 1 year ago ·

Sounds awesome, but I'm getting this error (in Windows)

error: unknown option `heading'

over 1 year ago ·

@gavinblair I will check it when I switch to Windows. What version of Git you have?

over 1 year ago ·

Works nicely on OS X.

over 1 year ago ·

Great! If you add -n it will also show the line number, which can be useful.

over 1 year ago ·