I've added a git alias to give me the line counts of specific files in my history:
[alias]
lines = !lc() { git ls-files -z ${1} | xargs -0 wc -l; }; lc
However, wc -l is reporting multiple totals, such that if I have more than ~100k lines, it reports the total for them, then moves on. Here's an example:
<100k lines (desired output)
$ git lines \*.xslt
46 packages/NUnit-2.5.10.11092/doc/files/Summary.xslt
232 packages/NUnit-2.5.10.11092/samples/csharp/_UpgradeReport_Files/UpgradeReport.xslt
278 total
>100k lines (had to pipe to grep "total")
$ git lines \*.cs | grep "total"
123569 total
107700 total
134796 total
111411 total
44600 total
How do I get a true total from wc -l, not a series of subtotals?