Commits in projects with lots of activity and authors don't happen
chronologically (patches are accepted later etc), so the counting was messed up
for them (git.git for example).
Search '/usr/share/gitstats/' for static files as well.
The first path to be searched is the directory of the binary, then
/usr/share/gitstats/. This is so that you can have both a "global" gitstats
version and a user-specific checkout installed, and the static files should be
taken from the matching place.
This change is done in preparation for Debian packaging.
Vincent Fourmond <fourmond@debian.org> is planning to package gitstats for
debian (RFP #440392).
Count lines using git objects instead of filesystem.
This seemed to be roughly three times slower than a direct "wc -l" from working
tree, but this way we are not limited to full & clean working trees, but can
also handle bare repositories.
A simple assumption is made about the tags: it's assumed that they come in
chronological order, and share the same history (eg. v0.0.1, v0.0.2). That way,
to get commits made for v0.0.2, we simply look for history from v0.0.1 to
v0.0.2.
Save cache to output directory, not git repository.
This closes bug #2184326 on SourceForge. Some people may not have access to
their git repository, so we save the cache to the output directory instead
(which must always have write access anyway).
This sorts tables on the authors and files pages.
Slightly modifies the sortable.js to ignore additional info in
parentheses after a number.
Signed-off-by: Heikki Hokkanen <hoxu@users.sf.net>