LoginSignup
11
11

More than 5 years have passed since last update.

todoを検索する

Last updated at Posted at 2014-06-26

開発中にとりあえず…って事でコメントにTODO: なんとか〜とかよく書くのだけれど後でagするとすべてのファイルが検索されて面倒くさい。
masterブランチと現在のブランチの差分にあるtodoのみを検索したい。

gitに以下のエイリアスを登録

[alias]
    todo = !"f() { for fn in `git diff --name-only master`;do if [ -f $fn ];then git grep -i todo $fn;fi done };f"

git todoで検索できる

11
11
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
11