241 Commits

Author SHA1 Message Date
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
Heikki Hokkanen
73782ab3e3 todo: remove sortable.js. 2008-10-21 16:58:37 +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
Tobias Gruetzmacher
7b61c4ba5b Add sortable.js for sortable tables in output.
This adds the sortable table JavaScript from
http://yoast.com/articles/sortable-table/ (version 1.5.7) and some
helper images from the same site.

[hoxu@users.sf.net: The license linked from sortable.js and the one linked from
yoast.com (to opensource.org) differ a bit (the middle sentence about
copyright/permissions notice is not in the first), so I'm including a verbatim
copy-paste from http://www.kryogenix.org/code/browser/licence.html here:
-----
Copyright (c) 1997-date Stuart Langridge

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-----
With the addition that Joost De Valk has improved the script.]
Signed-off-by: Heikki Hokkanen <hoxu@users.sf.net>
2008-10-21 16:56:40 +03:00
Tobias Gruetzmacher
2c771feb3e Clear right direction (left).
Signed-off-by: Heikki Hokkanen <hoxu@users.sf.net>
2008-09-16 17:39:23 +03:00
Heikki Hokkanen
4f38e59344 Updated todo to reflect caching.
Some data from linux-2.6 and wine repositories:

linux-2.6:

Execution time 8574.73483 secs, 8539.54468 secs (99.59 %) in external commands)
Execution time 532.61431 secs, 509.50925 secs (95.66 %) in external commands)

-> time reduced to ~6%

wine:

Execution time 1538.62315 secs, 1512.65805 secs (98.31 %) in external commands)
Execution time 341.02903 secs, 331.91908 secs (97.33 %) in external commands)

-> time reduced to ~22%

And this is just one particular function that is cached.

The downside is more used diskspace, the cache for linux-2.6 for example
is 2.9 MiB at the moment.
2008-07-15 16:33:54 +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
2b852d8ab9 Deleted the stale roadmap. 2008-06-29 08:05:48 +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
128e1adaae Updated some docs. 2008-06-29 07:58:03 +03:00
Heikki Hokkanen
b75bf01262 Remove some debugging prints etc.
Added in a01045f2480a21f28dd90e278b4f560020a97b9e.
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
cea9ebaa9f Removed unnecessary gnuplot files. 2007-09-13 19:30:13 +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
c31ca0c2f8 todo: activity -> Pace of Changes. 2007-09-07 11:06:30 +03:00
Heikki Hokkanen
74b80b4ce0 todo: state saving -> command line settings. 2007-09-07 10:32:59 +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
df8f910b19 todo: ideas on state saving/restoring. 2007-09-06 15:32:37 +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
3ffee5fce8 doc/author.txt: subject should include "gitstats". 2007-09-06 10:36:38 +03:00
Heikki Hokkanen
29040361ca Reverted gitstats to revision 76d1dc7a8be6523fde1252850790494442220e0c.
This reverts "Attempt to optimize file counting." and related commits.

(commit c257429c561af8b99bb0a0daa65871a80a9fedb2)
2007-09-06 10:31:46 +03:00
Heikki Hokkanen
4da1619fb4 todo: total repository size. 2007-09-06 10:02:56 +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