✨ Added toblame script and changed ddgr alias
This commit is contained in:
parent
2ac41ae952
commit
b2626c216d
2 changed files with 12 additions and 2 deletions
6
scripts/toblame
Executable file
6
scripts/toblame
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue