wyh4qa
Last Updated: February 25, 2016
·
1.648K
· hauleth
Me

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.

Say Thanks
Respond

6 Responses
Add your response

972
Avatar 2011 cropped

That was great! Thanks.

over 1 year ago ·
978
B13384540c165e40a9f4af9f9a234dc3

Yes, thanks for that!

over 1 year ago ·
1072
Avatar

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

error: unknown option `heading'

over 1 year ago ·
1095
Me

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

over 1 year ago ·
6204
Bcfb01511e8d03f20064a00335db32e4

Works nicely on OS X.

over 1 year ago ·
10881
E633424f80ce24effe8a115ec92a00ff

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

over 1 year ago ·
Filed Under