dotfiles/.local/bin/git-author

5 lines
282 B
Bash
Executable file

#! /bin/sh
# greps all authors and presents them in descending commit order
git log --all --format='%aN <%aE>' | awk '{arr[$0]++} END{for (i in arr){print arr[i], i;}}' | sort -rn;
#git log --all --format='%aN' | awk '{arr[$0]++} END{for (i in arr){print arr[i], i;}}' | sort -rn;