My dotfiles. Period.

12345678910111213141516
  1. #!/bin/bash
  2. #
  3. # totally sniff every line in history to see whose
  4. # are the lines here
  5. path="${1:-}"
  6. maybe_path=""
  7. test -n "$path" && maybe_path="-- $path"
  8. git ls-tree -r -z --name-only HEAD $maybe_path \
  9. | xargs -0 -n1 git blame --line-porcelain HEAD \
  10. | grep "^author " \
  11. | sort \
  12. | uniq -c \
  13. | sort -nr