Commit Graph

71 Commits

Author SHA1 Message Date
Heikki Hokkanen
50997a26be Show 'active days' for the whole project, too. 2009-12-23 17:53:42 +02:00
Heikki Hokkanen
e4c73e3680 Added 'active days' for authors.
Shows how many days the author has done commits on.
2009-12-23 17:48:13 +02:00
Heikki Hokkanen
e774d43ca4 Also look for resource files in ../share/gitstats.
This allows installing in other locations besides /usr.
2009-12-13 13:29:02 +02:00
Heikki Hokkanen
71a5f4c4a1 Set 'ytics 1' for files graph.
This prevents tics like 1.75, 2.5 etc on file count / y-axis.

Reported by Anonymous on SourceForge bug #2892604.
2009-11-07 13:11:21 +02:00
Heikki Hokkanen
8908774429 Cleaner output when not outputting to a tty.
Allow piping into a log file more cleanly without spewing \r (on Linux which
supports os.isatty()).
2009-10-26 20:07:43 +02:00
Heikki Hokkanen
d04805bbad Actually pass floats when formatting '%f'.
Some of these were pointed out by Anonymous on SourceForge bug #2830659.
2009-10-26 19:24:44 +02:00
Heikki Hokkanen
6397a94b30 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).
2009-09-09 21:33:57 +03:00
Heikki Hokkanen
5ef1ff8721 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.
2009-06-20 15:44:36 +03:00
Heikki Hokkanen
3e72538e75 Use 'w steps' for file count.
Instead of 'w histeps', we use 'w steps', which doesn't make the last commit
seem like it removed all the files.
2009-06-20 15:16:36 +03:00
Heikki Hokkanen
94105720ad Cleanup: removed some commented lines. 2009-06-20 11:00:04 +03:00
Heikki Hokkanen
bcc832bc49 Handle case with no commits between tags. 2009-06-18 21:16:38 +03:00
Heikki Hokkanen
0212bf1ce9 Tags: show commits & authors for each tag.
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.
2009-06-18 21:07:35 +03:00
Heikki Hokkanen
1c38faf5c1 Fixed the strftime format string.
Month was used where minute was supposed to be... wrong case :)
2009-06-18 20:25:47 +03:00
Matt Parlane
4d02bc99d9 Display hour numbers as 0-23 instead of 1-24
Signed-off-by: Heikki Hokkanen <hoxu@users.sf.net>
2009-05-17 14:47:18 +03:00
Heikki Hokkanen
25e421c0d5 Report Period: also show how many days. 2009-01-14 18:28:37 +02:00
Heikki Hokkanen
2bd55e5493 Include GitStats link & version on general page. 2009-01-14 18:23:03 +02:00
Heikki Hokkanen
10e1f6dc1c Include gitstats version in meta/generator.
Currently taken from "git rev-parse --short HEAD".
2009-01-14 18:20:23 +02:00
Heikki Hokkanen
a1d9c11c30 Cleanup: get rid of ';' brainfarts at end of some lines. 2008-12-23 09:52:03 +02:00
Heikki Hokkanen
170fd74dc3 Commits by Year: start yrange from 0.
Gives better proportions on amount of commits during each year.
2008-12-23 09:32:07 +02:00
Heikki Hokkanen
a6c295ec03 Color "Hour of Day" table. 2008-12-23 09:24:36 +02:00
Heikki Hokkanen
27bd4940b9 Color "Hour of Week" table. 2008-12-23 09:07:46 +02:00
Heikki Hokkanen
51cf60216b gnuplot: use 'w histeps' for files_by_date.
'smooth csplines' showed negative file count sometimes, which wasn't nice ;-)
2008-11-22 11:16:55 +02:00
Heikki Hokkanen
82e685fbe0 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).
2008-11-22 10:32:14 +02:00
Heikki Hokkanen
85c913f8a5 Improved extension handling.
Don't consider .hidden files extensions, and limit extension length to 10.
2008-11-22 10:15:26 +02:00
Heikki Hokkanen
0fd5e20140 s/git-/git /. 2008-11-22 10:10:29 +02:00
Heikki Hokkanen
80fad3b7b4 Always overwrite static files.
Just in case they have been updated.
2008-10-21 17:23:33 +03:00
Tobias Gruetzmacher
072723fb71 Use sortable.js to sort some tables.
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>
2008-10-21 16:58:11 +03:00
Heikki Hokkanen
29ef55792b Use zlib to compress the cache. 2008-07-14 19:44:41 +03:00
Heikki Hokkanen
ce7f45b62c Cache file count for each commit. 2008-07-14 19:32:09 +03:00
Heikki Hokkanen
1f1e6447dd DataCollertor learned loadCache() & saveCache(). 2008-07-14 19:23:16 +03:00
Heikki Hokkanen
1756f27c42 License is GPLv2 / GPLv3.
As stated in doc/README, contributions from now on should be under
"GPLv2 or older" to allow upgrading to newer versions of GPL
(if I think they are sensible :-)

This is essentially the same as "GPLv2 or older approved by the author."

Feedback is welcome.
2008-06-29 08:04:16 +03:00
Heikki Hokkanen
b75bf01262 Remove some debugging prints etc.
Added in a01045f248.
2008-06-28 12:49:27 +03:00
Heikki Hokkanen
14979d6dab Merge branch 'work' into windows 2008-06-28 11:55:36 +03:00
Heikki Hokkanen
7c13d11970 Cleanup.
Removed unneeded pass statements and done TODO tags.
2008-06-28 11:46:00 +03:00
Heikki Hokkanen
bf413b3a65 Bugfix for files_by_stamp calculation. 2008-06-28 11:38:43 +03:00
Heikki Hokkanen
be2cbda242 Use lists instead of tuples for better readability. 2008-06-28 11:15:34 +03:00
Heikki Hokkanen
3710b9178e Revert to earlier behaviour when showing commands.
The command being run will be shown first, and then prefixed with the
running time after it has been completed.
2008-06-28 10:45:17 +03:00
Heikki Hokkanen
80ca8cb2ef Env var GNUPLOT overrides gnuplot path.
By default 'gnuplot' will be searched from the system path.
2008-06-28 10:38:45 +03:00
Shixin Zeng
a7f0f5ea50 set "shell = True" when call subprocess.Popen
On unix, when "shell = False" (default), the args must be a list of
args. While on Windows, filling args with a list causes problems. As a
trade-off, set the this flag and using a string as the command, although
this might sacrifice some performance, but that's not the main concern
in this script.

Signed-off-by: Heikki Hokkanen <hoxu@users.sf.net>
2008-06-28 10:14:02 +03:00
Shixin Zeng
a01045f248 runs with msysgit on Win32
Signed-off-by: Heikki Hokkanen <hoxu@users.sf.net>
2008-06-28 10:13:40 +03:00
Heikki Hokkanen
1517256900 Minor optimization for line counting.
- git-rev-list: use %T instead of %H
- git-ls-tree: added --name-only
2007-09-13 19:42:55 +03:00
Heikki Hokkanen
9df3f8e6f2 Added try/except to catch weird lines from git-log --shortstat.
This is a workaround for linux-2.6 repository.
2007-09-13 19:40:49 +03:00
Heikki Hokkanen
f34e1491fc Cleanup: added DataCollector.refine()
Any additional statistics based on the extracted data should be produced in it.
2007-09-07 12:01:21 +03:00
Heikki Hokkanen
f9fa40d813 List of Authors: added "# by commits" column. 2007-09-07 11:37:21 +03:00
Heikki Hokkanen
fc614c6d50 authors: added "Next top 5" column to author of month/year.
Only names are shown for the next 5.
2007-09-07 10:29:50 +03:00
Heikki Hokkanen
5024a7ce03 Portability: use "#!/usr/bin/env python" for the shebang line.
Thanks to Alexander Botero-Lowry.
2007-09-06 10:50:00 +03:00
Heikki Hokkanen
4274e58ac8 Portability: use python's reverse() instead of |tac.
This should make gitstats work on FreeBSD.

Thanks to Alexander Botero-Lowry.
2007-09-06 10:47:20 +03:00
Heikki Hokkanen
29040361ca Reverted gitstats to revision 76d1dc7a8b.
This reverts "Attempt to optimize file counting." and related commits.

(commit c257429c56)
2007-09-06 10:31:46 +03:00
Heikki Hokkanen
b10f1a573d git-ls-files: look for '^c' instead of '^commit'. 2007-08-29 20:10:45 +03:00
Heikki Hokkanen
c257429c56 Attempt to optimize file counting.
Two executions of 'git-rev-list' were merged and python used instead of sh
snippet. From initial testing this seems to _slow_ things down.
2007-08-29 20:04:17 +03:00