git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Graph sloc tool for git repos
@ 2016-03-12 11:00 Kai Hendry
  2016-03-14  2:35 ` Jeff King
  0 siblings, 1 reply; 3+ messages in thread
From: Kai Hendry @ 2016-03-12 11:00 UTC (permalink / raw)
  To: git

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,

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-03-14  2:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-12 11:00 Graph sloc tool for git repos Kai Hendry
2016-03-14  2:35 ` Jeff King
2016-03-14  2:50   ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).