Commit Graph

271 Commits (master)

Author SHA1 Message Date
Heikki Hokkanen 0f2064ca2a Authors: show lines added/removed. 2010-01-06 10:38:34 +02:00
Heikki Hokkanen b49bc1b9ad Fixed project 'active days' counting.
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).
2010-01-06 10:38:34 +02:00
Heikki Hokkanen 52a20a7b09 Cleanup, use get('foo', 0) + 1 instead of if/else. 2010-01-06 10:38:34 +02:00
Heikki Hokkanen d1a2b53576 Oops, fixed author parsing.
This was supposed to be part of the last commit.
2010-01-06 10:38:34 +02:00
Heikki Hokkanen 8542a238e2 Activity: added 'Commits by Timezone'. 2010-01-06 10:38:33 +02:00
Heikki Hokkanen 04568e7fbd CSS: tweaked style. 2010-01-06 10:38:33 +02:00
Heikki Hokkanen 3585ce766d Show weekly activity for last 32 weeks. 2010-01-06 10:38:33 +02:00
Heikki Hokkanen 5fd64e6c19 Removed unnecessary datetime parsing. 2010-01-06 10:38:33 +02:00
Heikki Hokkanen fcbe8cd800 todo: remove some items.
Todo items for another project... :)
2010-01-06 10:38:33 +02:00
Heikki Hokkanen c694bcfdac Merge branch 'todo' into master 2010-01-06 10:35:48 +02:00
Heikki Hokkanen 552ec96a6f todo: more items. 2009-12-23 17:54:40 +02:00
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 7e29a4b07f Makefile: install to /usr/local by default. 2009-12-14 17:12:07 +02:00
Heikki Hokkanen 3a02a74445 Makefile: when installing, change VERSION with sed. 2009-12-13 13:49:48 +02:00
Heikki Hokkanen 93696ae336 Makefile: added 'release' target. 2009-12-13 13:42:52 +02:00
Heikki Hokkanen 3a2b43e5a4 Added a Makefile with simple install target. 2009-12-13 13:30:16 +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 66ce243b65 CSS: margin 'none' -> '0'.
After this change the CSS validates on jigsaw.w3.org.

Reported by Anonymous on SourceForge bug #2886542.
2009-10-26 18:53:28 +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 ba20779ad2 README: mention bare clone is ok as well. 2009-06-20 15:54:39 +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 c41e414173 todo: ideas on tags. 2009-06-18 20:46:12 +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
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