From: Kai Hendry Date: Sat, 12 Mar 2016 11:00:26 GMT Subject: Graph sloc tool for git repos Message-ID: <1457780426.2632189.547083938.25305E83@webmail.messagingengine.com> Hi there, I penned a script to plot SLOC of a git project using GNUplot & I thought the fastest way to count code fluctuations was via `git show --numstat`. However that requires some awk counting of the lines: https://github.com/kaihendry/graphsloc/blob/5f31e388e9b655e1801f13885f4311d221663a19/collect-stats.sh#L32 Is there a better way I missed? I think there is bug since my graph was a factor of 10 out whilst graphing Linux: https://twitter.com/kaihendry/status/706627679924174848 (Though the shape looks right) Good news it's generating graphs for smaller projects just fine: http://s.natalian.org/2016-03-12/dwm-3465bed.csv.svg Anyway, would love to get your feedback on https://github.com/kaihendry/graphsloc Kind regards from Petaling Jaya,