Skip to content

Instantly share code, notes, and snippets.

@rossbar
Created January 25, 2022 00:50
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save rossbar/3f45c43a05df16fa8bb9012704470def to your computer and use it in GitHub Desktop.
Generate per-line author data for pony factor
# replace `main` with name of default branch of repo @ pwd and output
for f in $(git ls-tree -r main --name-only); do git blame $f --line-porcelain | grep -I "^author " | cut -d" " -f2- >> authorship_by_line.txt; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment