Simple tool to display LOC (lines of code) count history for current branch of git repo.
Version: 2010-05-26 (git:39bc1d9) Download: git-loc (2.7k Python script) Github: http://github.com/ITikhonov/git-loc Usage: ./git-loc [--svg] Example: cd /git/repo; git checkout mybranch; ./git-loc --svg > graph-mybranch.svg
In output(1) first number is LOC of tree after this commit applied, next is lines this commit added, then lines removed.
kef@ivan-laptop:~/git-loc$ ./git-loc 2010-05-13 14:38:21 42 +42 -0 initial 2010-05-13 14:40:14 44 +2 -0 hashbang added 2010-05-13 14:41:04 49 +7 -2 show last commit too 2010-05-13 15:03:29 46 +3 -6 replaced history with own one 2010-05-19 04:48:03 46 +38 -38 rename git-style 2010-05-26 17:18:32 46 +1 -1 diff --git a/README b/README 2010-05-26 17:57:52 110 +67 -3 generate svg graph 2010-05-26 17:57:52 123 +23 -10 scale by hand, quote titles kef@ivan-laptop:~/git-loc$ cd ../ll && ../git-loc/git-loc --svg > git-loc-example.svg
SVG graph is a bit interactive, hover over graph to check particular commit details. Green bars up are lines added, blue ones - lines removed by commit. Red line connects points of LOC for particular commit.
Horizontal grey lines are distanced by some 10x value depended on peak LOC for graph.
When hovering over commit it shows tooltip with text like:
2010-03-21 21:52:26 634 +29 -65 key type in new dialect
Meaning of numbers is a same like in text output(1).