Added toblame script and changed ddgr alias

This commit is contained in:
z3rOR0ne 2022-11-18 15:54:31 -08:00
parent 2ac41ae952
commit b2626c216d
2 changed files with 12 additions and 2 deletions

6
scripts/toblame Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash
# git blame script showing how many commits each author has made in total
# https://stackoverflow.com/questions/4589731/git-blame-commit-statistics
git ls-tree -r -z --name-only HEAD -- $1 | sed 's/^/.\//' | xargs -0 -n1 git blame \
--line-porcelain HEAD |grep -ae "^author "|sort|uniq -c|sort -nr