Nathan Baulch

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)'
Posted by Nathan Baulch at 3:13 PM No comments:
Labels: bash, git, statistics
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ▼  2024 (1)
    • ▼  October (1)
      • Extract line count of file at each git revision
  • ►  2022 (1)
    • ►  February (1)
  • ►  2019 (1)
    • ►  December (1)
  • ►  2016 (2)
    • ►  October (1)
    • ►  August (1)
  • ►  2014 (1)
    • ►  April (1)
  • ►  2013 (4)
    • ►  November (1)
    • ►  March (1)
    • ►  January (2)
  • ►  2012 (7)
    • ►  June (1)
    • ►  February (3)
    • ►  January (3)
  • ►  2011 (4)
    • ►  December (4)

Stack Overflow

Profile for Nathan Baulch at Stack Overflow, Q&A for professional and enthusiast programmers

About Me

Nathan Baulch
View my complete profile
Simple theme. Powered by Blogger.