Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

using git to scan source code to generate todo list etc

Tags:

git

todo

I have lots of comments in the source code marked as future todos.

e.g. #todo:improve api for common syntax

etc.

I am using git for version control.

I would like to list all my todo, with something like

git list todo.

If no such plugin exists, can you guide me, how do I write one myself?

like image 586
iamgopal Avatar asked Dec 30 '25 04:12

iamgopal


1 Answers

Assuming all your todos are single-line comments, you could use git grep:

git grep '#todo'

You could then use redirects to store it for future use, e.g.:

git grep '#todo' > ~/Documents/my_project_todo.txt
like image 122
Mureinik Avatar answered Jan 01 '26 23:01

Mureinik



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!