Skip to content

Instantly share code, notes, and snippets.

@cslarsen
Created December 3, 2014 15:54
Show Gist options
  • Save cslarsen/a581cdcfa277b9c4c372 to your computer and use it in GitHub Desktop.
Save cslarsen/a581cdcfa277b9c4c372 to your computer and use it in GitHub Desktop.

Revisions

  1. cslarsen created this gist Dec 3, 2014.
    13 changes: 13 additions & 0 deletions git-todo.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    #!/bin/bash

    # Show all TODO and FIXME from current directory along with who's
    # responsible.
    #
    # Requires parallel to work (unless you want to make everything slow)

    ( find . \( -name '*.cpp' -o \
    -name '*.py' -o \
    -name '*.h' -o \
    -name '*.hpp' \) -print0 ) \
    | parallel -0 git blame \
    | egrep 'TODO|FIXME'