Commit Graph

43 Commits

Author SHA1 Message Date
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
Heikki Hokkanen
1eb86dbf2c gnuplot: added bmargin for plots that had rotated x labels cut off. 2007-08-29 19:17:26 +03:00
Heikki Hokkanen
76d1dc7a8b Don't list the "wc -l" commands. 2007-08-29 18:11:18 +03:00
Heikki Hokkanen
faf762f4dd Fixed escaping for "wc -l". 2007-08-29 17:52:29 +03:00
Heikki Hokkanen
b79278897c Workaround for unexpected content (line statistics).
Hopefully fixes a problem with linux-2.6 repository.
2007-08-28 17:00:04 +03:00
Heikki Hokkanen
8adcbf8182 Optimization: removed unneeded "git-ls-files". 2007-08-24 15:10:28 +03:00
Heikki Hokkanen
2b1cf3e22a Bugfix for line statistics.
Earlier this borked on author names containing "," (or example, wine
repository). Now it will instead check for line containing "files changed,".
2007-08-24 14:15:19 +03:00
Heikki Hokkanen
5e9c722ef5 Output time used in internal/external execution. 2007-08-24 13:47:52 +03:00
Heikki Hokkanen
d6d6d2534e Optimized "total commits" counting.
Removed an extra "git-rev-list".
2007-08-24 13:25:07 +03:00
Heikki Hokkanen
d87b7a004f Include project name in the title.
For now it's taken from the basename of the repository path.
2007-08-24 13:19:37 +03:00
Heikki Hokkanen
7c43e2be12 Print execution times for all external commands. 2007-08-21 19:08:39 +03:00
Heikki Hokkanen
3f2fc8db00 Copy gitstats.css to output path if it does not exist. 2007-08-21 19:01:16 +03:00
Heikki Hokkanen
6d4bc0796b Workaround for linux-2.6 repository. 2007-08-21 18:37:59 +03:00
Heikki Hokkanen
d0c9bd5abb Optimize total lines of code.
Get total lines of code from "git-log --shortstat" instead of "cat".
2007-08-21 16:14:29 +03:00
Heikki Hokkanen
c9964f028c Graph: Lines of Code.
Line statistics are gathered correctly (again).
2007-08-21 15:50:26 +03:00
Heikki Hokkanen
b345047de8 Collect line statistics properly. 2007-08-21 15:18:36 +03:00
Heikki Hokkanen
012cf6be52 Collect some data for inserted/deleted lines each commit. 2007-08-16 20:09:37 +03:00
Heikki Hokkanen
bde7d30882 More todo items. 2007-08-16 16:07:46 +03:00
Heikki Hokkanen
9da6a926b7 Output fragment (#) links for all headers.
Headers are now created using html_header() function.
2007-08-16 15:56:06 +03:00
Heikki Hokkanen
2a6d586349 Workaround for git repository. 2007-08-16 15:12:17 +03:00
Heikki Hokkanen
5fd98ece22 Renamed name to GitStats from statgit in the rest of the files.
This name change was done just in case the statcvs/statsvn folks plan on making
a git version at some point in the future (the projects seem to share
developers).
2007-08-16 14:43:43 +03:00
Heikki Hokkanen
f75d9d372f Renamed statgit -> gitstats in filenames. 2007-08-16 14:35:26 +03:00