Wrap run() inside if __name__.
Make project name configurable (-c project_name=foo).
README: s/GPLv2 or older/GPLv2 or later/.

gitstats is dual-licensed under GPLv2/GPLv3, so naturally the contributions are
asked to be GPLv2+.

Thanks-to: Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>
Set image size with "set terminal size", not "set size".

Recent versions of gnuplot understand "set size" as the amount of
space to use within the canava size. "set size 1,0.5" was therefore
creating large images with the top half being blank.

set terminal size works as expected at least with gnuplot 4.4 and 4.2.

Signed-off-by: Heikki Hokkanen <hoxu@users.sf.net>
Portable syntax for "set xtics rotate"

Gnuplot version 4.4 renders text within the drawing area with "set
xtics rotate angle 90". According to

http://newsgroups.derkeiler.com/Archive/Comp/comp.graphics.apps.gnuplot/2010-08/msg00079.html
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=586513

this is a feature, not a bug, but "set xtics rotate" give the expected
behavior everywhere (text from down to top, below the graph).

Signed-off-by: Heikki Hokkanen <hoxu@users.sf.net>
Include git and gnuplot version on general page.
Don't compute per-author information with --first-parent

While it's fine to compute project-wide informations (LOC) on a linear
history, we don't want to assign added lines of code to the user doing
a merge when the code was initially written by someone else on a
branch.

Signed-off-by: Heikki Hokkanen <hoxu@users.sf.net>
Per-author added lines graph

Old versions of gnuplot produce garbage if the author's name contain
non-ascii, but gnuplot 4.4 seems to handle it just fine.

Signed-off-by: Heikki Hokkanen <hoxu@users.sf.net>
Per-author commit count graph

Signed-off-by: Heikki Hokkanen <hoxu@users.sf.net>
Bump copyright year.
Cleanup: whitespace changes & removed extra ';'.
Initial changes for multi-repo awareness.

Initial attempt to make gitstats create cumulative statistics for multiple
repos (the case of a single project consisting of more than just one git
repository.)

Signed-off-by: Heikki Hokkanen <hoxu@users.sf.net>
Trivial change to Wulf's patch.
Make negative author timedelta positive.

Commit timestamps can be in backwards order (when applying patches &
cherry-picking in reverse order), so we don't want author age to be negative
(was in gitstats case too :)
Fix first/last commit finding.

Because of cherry-pick and patches, commits may be in any order. This also
improves the support for generating statistics for multiple repositories.
Fix author active days calculation.

A set of dates is used now instead of an incremented value. This is the same as
what has been used for General -> active days already.
Remove debug print.
Don't create ugly graphs on clock skew

We collect and accumulate data based on the order of the output of "git
log", which is not necessarily ordered by timestamp. Adding --date-order
should improve the situation, but isn't sufficient at least on git.git's
repository.

In addition, when encountering a date that is prior to the last one
encountered, we change it to be the last encountered date. A better
solution would be to actually order the lines before starting to count.

Signed-off-by: Heikki Hokkanen <hoxu@users.sf.net>
todo: updated.
Do not consider a dot in path a filename extension.

'highlight.js/LICENSE' was recognized as 'js/LICENSE' extension erroneously.

Fixes SourceForge bug #3221520.

Thanks-to: Alexander Gladysh <agladysh@users.sourceforge.net>