Commit Graph

129 Commits

Author SHA1 Message Date
Adam Waldenberg f36b82170f File structure rearranged to be more compatible with setuptools/Distribute.
The fact is, gitinspector is now stable enough to inlude support for python
distribution and setup. This is the first step towards that transition.
2013-06-14 03:16:30 +02:00
Adam Waldenberg 466941047b Slightly improved the documentation of the --until/since flags. 2013-06-12 18:15:14 +02:00
Adam Waldenberg 761bc10046 Week strings in the timeline module are now zero-padded (Fixes issue 3). 2013-06-12 14:57:25 +02:00
Adam Waldenberg a31ab18ba0 Fixed some violations reported by pylint. 2013-06-06 03:05:30 +02:00
Adam Waldenberg 0e3ce9b339 Added support for comments and metrics in PHP code.
Even though it is supported, PHP is not part of the default file extensions
used during analysis. To include PHP files in the statistical analysis,
the extension needs to be supplied to gitinspector using the -f flag.
2013-06-06 03:01:07 +02:00
Adam Waldenberg 69af5a797b The metrics module was not taking the --until flag into consideration. 2013-06-06 02:12:56 +02:00
Adam Waldenberg d5fc9057fb gitinspector now checks it is running under the required Python version.
The required Python version is 2.6. The check is done after all the
command-line arguments have been parsed. In this way, it is still possible
to get help and version information from the script even if the script is
not able to execute properly.
2013-06-05 01:50:29 +02:00
Adam Waldenberg f95e81bb69 International characters were being stripped when running under Python 2. 2013-06-05 01:15:54 +02:00
Adam Waldenberg 8d597238c1 Fixed a UnicodeWarning that could occur under Python 2. 2013-06-03 02:15:55 +02:00
Adam Waldenberg db77273659 Fixed a potential error with comment detection.
This particular faulty detection could only occur when multi-line comments
were used as single-line comments.
2013-06-02 19:14:25 +02:00
Adam Waldenberg 879a7c5446 Removed the storage of commit message in the Commit class.
As we don't really need it, storing this was just eating up unnecessary
memory. On very big repositories (with many commits) removing it makes a
big difference.
2013-05-20 19:07:35 +02:00
Adam Waldenberg f74eb394b8 Bumped the version number to 0.2.2. 2013-05-20 16:24:16 +02:00
Adam Waldenberg 0c0f39f2c9 HTML hover effect is now only shown on tables with hidden rows. 2013-05-20 16:22:08 +02:00
Adam Waldenberg 1992d3dc94 Added support for table sorting to the HTML output.
Instead of manually adding this functionality with our own code; we use
the JQuery tablesorter plugin which adds support for sorting with a few
simple rows of code.
2013-05-20 16:07:02 +02:00
Adam Waldenberg 128b8b3b56 The responsibilities module no longer prints empty authors. 2013-05-20 02:20:29 +02:00
Adam Waldenberg fe3f067d6a String encoding was broken during redirection of stdout.
The encoding now defaults to UTF-8 whenever stdout does not point to a
proper terminal.
2013-05-20 01:48:17 +02:00
Adam Waldenberg cf40f16119 Fixed the decoding of strings (Fixes issue 2).
It should now (hopefully) behave the same in all Python versions 2.6+.
2013-05-16 03:06:28 +02:00
Adam Waldenberg c6771c0b9f Hovering (in HTML output) is now done with CSS instead of javascript. 2013-05-16 03:06:06 +02:00
Adam Waldenberg 72975d548c Fixed the display of the pie charts in the HTML output.
Pie charts could previously overlap the sections where they resided.
2013-05-14 03:11:58 +02:00
Adam Waldenberg 2ae221f511 Changes are now collected with commiter dates instead of author dates.
This is probably what we want, because it reflects when an actual change
was officially committed/pushed up.
2013-05-14 02:20:13 +02:00
Adam Waldenberg 028469080f The "--since" flag is now also passed to the blame module. 2013-05-14 01:59:27 +02:00
Adam Waldenberg 35214550f3 Fixed some UnicodeEncodeError exceptions that could occur with Python 2. 2013-05-13 02:58:14 +02:00
Adam Waldenberg 99dc2c4735 Bumped the version number to 0.2.1. 2013-05-10 02:10:29 +02:00
Adam Waldenberg 65481c013e Added filtering to the HTML timeline.
Rows with minor work are filtered; these are rows that contain very little
work (only dots). The filtering can be toggled by pressing a button.
2013-05-09 02:45:12 +02:00
Adam Waldenberg e2d54afade Added utf-8 encoding to the HTML header. 2013-05-08 19:28:32 +02:00
Adam Waldenberg b1dfade98d Fixed compatibility with Python 3. 2013-05-08 18:52:08 +02:00
Adam Waldenberg 00c0218896 Fixed the printout of extensions in the HTML output.
The printed data was using   instead of spaces when printing out all
extensions found. This resulted in the browser not being able to properly
separate rows.
2013-05-08 18:26:25 +02:00
Adam Waldenberg 10179d12ed Added filtering of minor authors to the tables in the HTML output.
In practice, this means that the tables are initially collapsed and hide
all authors with a workload below one percent. The user can expand a
table in order to show all authors found during statistical analysis.
2013-05-08 16:53:20 +02:00
Adam Waldenberg b50f85ba17 Improved the pie charts of the HTML output.
All authors with a workload less than one percent are now combined into
the same slice of the pie chart.
2013-05-08 05:32:45 +02:00
Adam Waldenberg 0c6358324d Empty rows are now skipped in the timeline output.
In practice, this means that whenever an author is not part of a
collection of periods he will not be printed out.

This cleans up the output and also speeds up analysis.
2013-05-06 13:30:58 +02:00
Adam Waldenberg 2dd4c2c4ff Fixed the XML output of the timeline.
The output was simply wrong and was outputting extra "<authors>" tags all
over the place. Also, whenever there was very little work, this was not
included in the timeline.
2013-05-06 13:12:27 +02:00
Adam Waldenberg 0baa250db2 Added support for HTML comments. 2013-05-06 11:44:27 +02:00
Adam Waldenberg 8dc1fdeee0 Added support for Perl single-line comments.
Multi-line POD comments in Perl are not supported for now; they are a
little hairy and probably require a little extra work in order to be
parsed correctly.
2013-05-06 11:36:04 +02:00
Adam Waldenberg 34f490af57 The terminal fallback mode no longer considers terminal height. 2013-05-06 11:17:09 +02:00
Adam Waldenberg cf8922efe6 Implemented a fallback mode for terminals that report zero width/size. 2013-05-06 00:47:51 +02:00
Adam Waldenberg 88c01e62ed Fixed a IndexError which happened whenever no commits were found.
This happened when an interval was set and no commits were made within
the specified interval.
2013-05-06 00:29:55 +02:00
Adam Waldenberg f4c3285cb8 Added the ability to limit results by date range (Fixes issue 1).
This can now be done by supplying one (or both) of the "--since" and
"--until" parameters to the gitinspector executable. These parameters
work in the same manner as they do in git and accept the same values.
Statistics will only be generated from data between the given interval.
2013-05-01 23:09:10 +02:00
Adam Waldenberg cd3de23da2 Modified the call to git log in the changes module to conform with Windows.
The call to git log included "'" characters to "stringify" input to the
git command. On unix systems, this functions the same way as the
citation (") character. On Windows however, it does not.
2013-04-18 17:05:35 +02:00
Adam Waldenberg dbcf709232 Fixed a small mistake in the help text. 2013-04-17 17:36:59 +02:00
Adam Waldenberg fd4ea02fa8 Bumped the version number to 0.2.0. 2013-04-16 18:37:07 +02:00
Adam Waldenberg 1a429309df Added HTML output to the responsibilities module. 2013-04-16 15:22:45 +02:00
Adam Waldenberg 0fc69ff19c Fixed a long standing bug related to international characters.
This bug occurred because whenever the "git blame" command detects
international character it outputs a string escaped character string in
the form "\ddd\ddd". Gitinspector didn't properly handle this. Python
offers a way to decode this using the decode function together with the
"string_escape" encoding.
2013-04-16 14:58:33 +02:00
Adam Waldenberg 66915b7737 Moved the script tag outputted by the blame module. 2013-04-09 23:00:11 +02:00
Adam Waldenberg a5789197e0 The grading flag now also sets the hard (-H) flag.
The -H flag was basically always used when grading anyway as it gives
out more precise statistics.
2013-04-09 22:59:32 +02:00
Adam Waldenberg 0b758fc087 Made some cosmetic changes to the HTML output.
Everything is now properly centered onto the body of the HTML page. Also,
the content of the page has a fixed width.
2013-04-09 22:36:00 +02:00
Adam Waldenberg 4f66b46c67 Added HTML output to the metrics module. 2013-04-09 21:44:44 +02:00
Adam Waldenberg f106ad85ca Added HTML output to the timeline module. 2013-04-09 21:17:21 +02:00
Adam Waldenberg 287d7211ee Output the number of modified rows each period in the timeline module.
This will output the sum of changed rows from all the authors of that
period.
2013-04-09 10:43:04 +02:00
Adam Waldenberg 32c3b5af9f Updated all copyright notices of the project to include the year 2013. 2013-04-05 14:15:56 +02:00
Adam Waldenberg a8f437808b Fixed an indentation error in the missing module. 2013-04-05 14:09:28 +02:00