Sunday, October 6, 2024

Extract line count of file at each git revision

git rev-list --reverse HEAD -- words.csv | \
    xargs -I {} sh -c 'echo $(git show -s --date=short --format="%ad" {}) $(git show {}:./words.csv | wc -l)'

No comments: