Skip to content

Instantly share code, notes, and snippets.

@kliph
Created December 16, 2017 16:34
Show Gist options
  • Save kliph/97b378633b2d9990d7993ff9de1d1dc3 to your computer and use it in GitHub Desktop.
Save kliph/97b378633b2d9990d7993ff9de1d1dc3 to your computer and use it in GitHub Desktop.
git ls-tree --full-tree -r HEAD | awk '{ print $4 "," $3 }' >> closures.csv
cat closures.csv | awk -F "," '{ print $1 }' | xargs -L 1 git log --follow --diff-filter=A --find-renames=40% -- | ag commit | awk '{ print $2 }' > creations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment