【问题标题】:using git to scan source code to generate todo list etc使用 git 扫描源代码生成待办事项列表等
【发布时间】:2014-11-19 05:36:12
【问题描述】:

我在源代码中有很多 cmets 标记为未来的待办事项。

例如#todo:improve api for common syntax

等等

我正在使用 git 进行版本控制。

我想列出我所有的todo,例如

git list todo.

如果没有这样的插件,你能指导我,我如何自己写一个?

谢谢。

【问题讨论】:

  • 在目录中搜索TODOs 与git 有什么关系?
  • 您能回答这个问题吗,以便我选择它作为正确答案。它就像魅力一样。 :D

标签: git todo


【解决方案1】:

假设您所有的待办事项都是单行 cmets,您可以使用 git grep:

git grep '#todo'

然后您可以使用重定向来存储它以供将来使用,例如:

git grep '#todo' > ~/Documents/my_project_todo.txt

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-06-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多