wyh4qa
Last Updated: February 25, 2016
·
1.691K
· 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

972

That was great! Thanks.

over 1 year ago ·
978

Yes, thanks for that!

over 1 year ago ·
1072

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

error: unknown option `heading'

over 1 year ago ·
1095

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

over 1 year ago ·
6204

Works nicely on OS X.

over 1 year ago ·
10881

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

over 1 year ago ·