Skip to content

Instantly share code, notes, and snippets.

@lmarkus
Created June 11, 2015 03:26
Show Gist options
  • Save lmarkus/d6aa7870b917154cb311 to your computer and use it in GitHub Desktop.
Save lmarkus/d6aa7870b917154cb311 to your computer and use it in GitHub Desktop.
TODO Blame tool
#! /bin/bash
# Greps the codebase looking for TODO entries, and prints out who's the lazy dev that left it there...
git grep -n "TODO" |
while read -d $'\n' task
do
split=(${task//:/ })
file=${split[0]}
line=${split[1]}
git blame -L $line,$line $file
done
@schauer
Copy link

schauer commented Aug 13, 2020

Nice, thanks 👍 !

@brian-scb
Copy link

glorious

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment