mirror of
https://github.com/Stunkymonkey/dotfiles.git
synced 2025-05-24 11:04:41 +02:00
[bin] add git-authors to dotfiles
This commit is contained in:
parent
0bea48b8b6
commit
40042ff35e
2 changed files with 11 additions and 0 deletions
10
bin/git-authors.sh
Executable file
10
bin/git-authors.sh
Executable file
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# save as i.e.: git-authors and set the executable flag
|
||||||
|
git ls-tree -r -z --name-only HEAD -- "${1}" \
|
||||||
|
| xargs -0 -n1 git blame --line-porcelain HEAD \
|
||||||
|
| grep "^author " \
|
||||||
|
| sort \
|
||||||
|
| uniq -c \
|
||||||
|
| sort -nr
|
||||||
|
|
|
@ -35,6 +35,7 @@
|
||||||
"~/.local/bin/host-is-on": "bin/host-is-on.sh",
|
"~/.local/bin/host-is-on": "bin/host-is-on.sh",
|
||||||
"~/.local/bin/mdo": "bin/mdo.sh",
|
"~/.local/bin/mdo": "bin/mdo.sh",
|
||||||
"~/.local/bin/mon-toggle": "bin/mon-toggle.sh",
|
"~/.local/bin/mon-toggle": "bin/mon-toggle.sh",
|
||||||
|
"~/.local/bin/git-authors": "bin/git-authors.sh",
|
||||||
"~/.gitconfig": "git/gitconfig",
|
"~/.gitconfig": "git/gitconfig",
|
||||||
"~/.config/i3/config": "i3/i3config",
|
"~/.config/i3/config": "i3/i3config",
|
||||||
"~/.config/i3status/config": "i3/i3status",
|
"~/.config/i3status/config": "i3/i3status",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue