Created
November 27, 2023 18:08
-
-
Save MarkBennett/4e3d5346a0c8e12c5a3677581586aec9 to your computer and use it in GitHub Desktop.
Extracting contributor emails from a git repo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git shortlog -sne | awk '!/users.noreply.github.com/ {count=$1; $1=""; gsub(/^ /,"",$0); name=substr($0,1,index($0,"<")-1); gsub(/[ \t]+$/, "", name); email=tolower(substr($0,index($0,"<")+1)); gsub(/>/,"",email); print count", \""name"\", \""email"\""}' > contributors.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment