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.
16 年前
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.
16 年前
Heikki Hokkanen
94105720ad
Cleanup: removed some commented lines.
16 年前
Heikki Hokkanen
bcc832bc49
Handle case with no commits between tags.
16 年前
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.
16 年前
Heikki Hokkanen
1c38faf5c1
Fixed the strftime format string.
Month was used where minute was supposed to be... wrong case :)
16 年前
Matt Parlane
4d02bc99d9
Display hour numbers as 0-23 instead of 1-24
Signed-off-by: Heikki Hokkanen <hoxu@users.sf.net>
16 年前
Heikki Hokkanen
25e421c0d5
Report Period: also show how many days.
17 年前
Heikki Hokkanen
2bd55e5493
Include GitStats link & version on general page.
17 年前
Heikki Hokkanen
10e1f6dc1c
Include gitstats version in meta/generator.
Currently taken from "git rev-parse --short HEAD".
17 年前
Heikki Hokkanen
a1d9c11c30
Cleanup: get rid of ';' brainfarts at end of some lines.
17 年前
Heikki Hokkanen
170fd74dc3
Commits by Year: start yrange from 0.
Gives better proportions on amount of commits during each year.
17 年前
Heikki Hokkanen
a6c295ec03
Color "Hour of Day" table.
17 年前
Heikki Hokkanen
27bd4940b9
Color "Hour of Week" table.
17 年前
Heikki Hokkanen
51cf60216b
gnuplot: use 'w histeps' for files_by_date.
'smooth csplines' showed negative file count sometimes, which wasn't nice ;-)
17 年前
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).
17 年前
Heikki Hokkanen
85c913f8a5
Improved extension handling.
Don't consider .hidden files extensions, and limit extension length to 10.
17 年前
Heikki Hokkanen
0fd5e20140
s/git-/git /.
17 年前
Heikki Hokkanen
80fad3b7b4
Always overwrite static files.
Just in case they have been updated.
17 年前
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>
17 年前
Heikki Hokkanen
29ef55792b
Use zlib to compress the cache.
17 年前
Heikki Hokkanen
ce7f45b62c
Cache file count for each commit.
17 年前
Heikki Hokkanen
1f1e6447dd
DataCollertor learned loadCache() & saveCache().
17 年前
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.
17 年前
Heikki Hokkanen
b75bf01262
Remove some debugging prints etc.
Added in a01045f2480a21f28dd90e278b4f560020a97b9e.
17 年前
Heikki Hokkanen
7c13d11970
Cleanup.
Removed unneeded pass statements and done TODO tags.
17 年前
Heikki Hokkanen
bf413b3a65
Bugfix for files_by_stamp calculation.
17 年前
Heikki Hokkanen
be2cbda242
Use lists instead of tuples for better readability.
17 年前
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.
17 年前
Heikki Hokkanen
80ca8cb2ef
Env var GNUPLOT overrides gnuplot path.
By default 'gnuplot' will be searched from the system path.
17 年前
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>
17 年前
Shixin Zeng
a01045f248
runs with msysgit on Win32
Signed-off-by: Heikki Hokkanen <hoxu@users.sf.net>
17 年前
Heikki Hokkanen
1517256900
Minor optimization for line counting.
- git-rev-list: use %T instead of %H
- git-ls-tree: added --name-only
18 年前
Heikki Hokkanen
9df3f8e6f2
Added try/except to catch weird lines from git-log --shortstat.
This is a workaround for linux-2.6 repository.
18 年前
Heikki Hokkanen
f34e1491fc
Cleanup: added DataCollector.refine()
Any additional statistics based on the extracted data should be produced in it.
18 年前
Heikki Hokkanen
f9fa40d813
List of Authors: added "# by commits" column.
18 年前
Heikki Hokkanen
fc614c6d50
authors: added "Next top 5" column to author of month/year.
Only names are shown for the next 5.
18 年前
Heikki Hokkanen
5024a7ce03
Portability: use "#!/usr/bin/env python" for the shebang line.
Thanks to Alexander Botero-Lowry.
18 年前
Heikki Hokkanen
4274e58ac8
Portability: use python's reverse() instead of |tac.
This should make gitstats work on FreeBSD.
Thanks to Alexander Botero-Lowry.
18 年前
Heikki Hokkanen
29040361ca
Reverted gitstats to revision 76d1dc7a8be6523fde1252850790494442220e0c.
This reverts "Attempt to optimize file counting." and related commits.
(commit c257429c561af8b99bb0a0daa65871a80a9fedb2)
18 年前
Heikki Hokkanen
b10f1a573d
git-ls-files: look for '^c' instead of '^commit'.
18 年前
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.
18 年前
Heikki Hokkanen
1eb86dbf2c
gnuplot: added bmargin for plots that had rotated x labels cut off.
18 年前
Heikki Hokkanen
76d1dc7a8b
Don't list the "wc -l" commands.
18 年前
Heikki Hokkanen
faf762f4dd
Fixed escaping for "wc -l".
18 年前
Heikki Hokkanen
b79278897c
Workaround for unexpected content (line statistics).
Hopefully fixes a problem with linux-2.6 repository.
18 年前
Heikki Hokkanen
8adcbf8182
Optimization: removed unneeded "git-ls-files".
18 年前
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,".
18 年前
Heikki Hokkanen
5e9c722ef5
Output time used in internal/external execution.
18 年前
Heikki Hokkanen
d6d6d2534e
Optimized "total commits" counting.
Removed an extra "git-rev-list".
18 年前