I need to determine the number of lines in each file after each commit of a git repo. How do I do this?
I've looked at gitstats and git-loc, but both seem to calculate aggregate statistics, and I'm not sure how to adapt their code to my needs.
Copyright © 2021 Jogjafile Inc.
How about adding a post-commit hook that does this? It could look something like:
where "wc -l" could be replaced with your preferred SLOC counter.