Commit graph

433 commits

Author SHA1 Message Date
Adam Waldenberg
7f74b6a99f Re-implement timeline in the HTML outpout (#28).
While the timeline itself is displayed just fine, filtering of minor
authors has not been re-added yet.
2015-12-26 03:03:45 +01:00
Adam Waldenberg
5a8e84cb2d Slightly optimized the CSS rules of the HTML output (#28). 2015-12-25 04:44:18 +01:00
Adam Waldenberg
0f52711218 Slightly moved HTML changes & blame minor authors buttons (#28).
These are now placed above the horizontal ruler of each section instead
of the previous positioning.
2015-12-25 04:39:32 +01:00
Adam Waldenberg
db03f37c94 Removed some dead code from the HTML JavaScript output (#28). 2015-12-25 04:26:31 +01:00
Adam Waldenberg
9bbd5fcce4 HTML pie charts in the changes and blame outputs now work again (#28).
While not yet perfect, the implementation is fully responsive and reacts
to window re-sizing. However, the design needs much more work before we
can consider it completed.
2015-11-25 02:45:37 +01:00
Adam Waldenberg
7945dbbe72 Use MINOR_AUTHOR_PERCENTAGE in output modules (#28).
Consequently, we now only need to change the percentage in one place if
we want to modify the lower bound for minor authors.
2015-11-24 23:47:42 +01:00
Adam Waldenberg
0c4e4bf54f Hovering over table headers now shows a cursor pointer (#28). 2015-11-23 02:08:28 +01:00
Adam Waldenberg
a39ee4dabb Fixed excess margin in outputted HTML tables (#28). 2015-11-23 01:41:53 +01:00
Adam Waldenberg
aa7c720626 Removed dangling table footer in changes HTML output (#28). 2015-11-23 01:41:09 +01:00
Adam Waldenberg
cb72710ed0 Disable buttons when no minor authors exist (#28). 2015-11-14 09:00:14 +01:00
Adam Waldenberg
937ac44e8a Replaced table footers with buttons and fixed zebra coloring (#28).
Apart from the aforementioned changes, some slight improvements were
also done to the styling of the table.

The buttons utilize a check mark symbol instead of modifying the
button text upon selection.
2015-11-14 00:25:56 +01:00
Adam Waldenberg
c90ac5a7ef The HTML blame output now behaves similarly to the changes output (#28). 2015-11-10 23:25:05 +01:00
Adam Waldenberg
dcbc6634f2 Changed "graphical glyphs" to solid arrows (#28).
The $or; character was changed to $#x25bc;, while $and; was changed to
$#x25b2.
2015-11-07 14:27:02 +01:00
Adam Waldenberg
d11bcddc35 Removed old HTML output header "hack" calculation (#28).
This is unnecessary and breaks any new responsive designs.
2015-11-07 14:22:43 +01:00
Adam Waldenberg
5ed8b32d9a Increased the size of gravatars in the HTML output (#28). 2015-11-07 14:18:31 +01:00
Adam Waldenberg
4396e993e6 Slightly reworked styling and added use of "table-striped" class (#28).
Most of the old CSS rules are currently commented out but left
intact to serve as a reference during development.

While this change completely breaks the HTML output, I'm considering
this iteration a first test.
2015-11-07 14:18:31 +01:00
Adam Waldenberg
75f1924823 Added BootStrap3 to the archive and improved format.py (#28).
We now use more external resources in the normal HTML output (cdnjs).
This makes the generated HTML substantially smaller.

Also took the opportunity to add a comment about the slightly
modified tablesorter.js plug in that we are using.
2015-11-07 14:18:24 +01:00
Adam Waldenberg
91d94446a7 The logo in the HTML output now links to the gitinspector page. 2015-11-04 05:56:52 +01:00
Adam Waldenberg
88d840dd51 Gitinspector now has a better and more clear logo. 2015-11-04 05:31:24 +01:00
Adam Waldenberg
26f77e0ee4 The XML output now prints repositories in a proper XML list.
If one repository is found, the following format is used:

<repository>name</repository>

If multiple repositories are found, the following format is used:

<repositories>
	<repository>name</repository>
	<repository>name</repository>
	...
</repositories>
2015-11-03 23:00:17 +01:00
Adam Waldenberg
4d6ecd3123 Avoid hyphen characters ("-") in JSON properties.
Using that character is obviously a bad idea, as it is reserved
for substraction in most programming languages; making output a
hassle to parse.
2015-11-03 22:52:17 +01:00
Adam Waldenberg
9b3a5b674e Some output was missing in the JSON output.
Repository names, gitinspector version and report date were all missing
from the output when JSON was selected.
2015-11-03 22:42:23 +01:00
Adam Waldenberg
87fd5b467f Upgraded the JQuery version in the flot archive to 1.9.1 (#28).
This is the minimal version required by Bootstrap3 (which we will
base the new responsive HTML theme on). This upgrade required changes
to the JavaScript code, as toggle(...) has been deprecated since
version 1.9.x of JQuery.
2015-11-03 04:25:40 +01:00
Adam Waldenberg
4fd918fca4 Fixed some pylint violations. 2015-11-03 00:44:47 +01:00
Adam Waldenberg
949a301698 Fixed a few typo mistakes in the HTML output of the format module. 2015-11-03 00:36:05 +01:00
Adam Waldenberg
211060c20e Updated the flot archive to version 0.8.3. 2015-11-03 00:33:16 +01:00
Adam Waldenberg
9ada057d81 Progress output now includes repository name (#24).
The name of the repository is only printed when multiple repositories
are specified. Otherwise, gitinspector falls back to the previous
behavior
2015-11-02 18:22:56 +01:00
Adam Waldenberg
7dda8d34b5 Made terminal.output_progress(...) aware of the terminal width.
Instead of clearing the row using the "\b" character on each
iteration, the function now passes a carriage return ("\r") instead.
Furthermore, the row is now always completely cleared before
printing the progress.
2015-11-02 18:02:54 +01:00
Adam Waldenberg
d5106a7302 Implemented validation and printing of all supplied repositories (#24).
Upon start-up, now directly passes all supplied paths to git in order
to check if all of them point to a valid git repository.

The clone.create() function now returns a list of Repository instances,
containing the name and location of the repository. This is later
used in the gitinspector module to execute and parse the repository.

format.output_header(...) now takes a list of Repository instances.
Thanks to this, each output format can print every supplied repository.
2015-11-02 02:30:28 +01:00
Adam Waldenberg
01bdbfaba1 basedir.get_basedir_git() now takes an optional path argument.
This enables us to change the working directory for the git commands
in the function upon request. This change is in preparation of the
completion of #24.
2015-11-01 17:19:46 +01:00
Adam Waldenberg
7f5b50cd0d Fixed formatting bug in the JSON output of the metrics module.
Sections in the metrics output were not being separated with a comma,
leading to invalid JSON.
2015-11-01 03:45:44 +01:00
Adam Waldenberg
802f18e7e5 The metrics module now supports multiple repositories (See issue #24). 2015-11-01 03:36:40 +01:00
Adam Waldenberg
7acf871ab1 Help text now mentions support for multiple repos (See issue #24). 2015-10-31 05:11:10 +01:00
Adam Waldenberg
98615ccbfc Support for multiple repositories is near completion (See issue #24).
Only the metrics module is lacking support. While the rest should work,
please note that it is completely untested as of now and probably
has some rough edges.
2015-10-31 05:10:00 +01:00
Adam Waldenberg
46b21db196 The changes module now supports multiple repositories (See issue #24).
Just as before, all other parts of gitinspector currently do not
support fetching statistics from multiple repositories and just
simply fetch data from the last repository specified.
2015-10-31 03:44:00 +01:00
Adam Waldenberg
3bae1be0cb Fixed faulty import in metricsoutput module. 2015-10-31 02:22:25 +01:00
Adam Waldenberg
9287b187f7 Fixed some pylint violations. This also takes care of some bugs. 2015-10-31 00:03:51 +01:00
Adam Waldenberg
dd2feedbe4 Fixed invalid indentation at begining of file in gitinspector.py. 2015-10-30 23:54:04 +01:00
Adam Waldenberg
e0941fdcf1 The gitinspector.py entry module now considers all repositories.
While they are considered, they are not yet being merged. Statistics
are only calculated for the last repository passed.

This is being done in preparation of completing issue #24.
2015-10-30 23:46:13 +01:00
Adam Waldenberg
109a94e1e7 The basedir module is no longer persistent (doesn't remember state).
This is required in order for it to be callable multiple times for
multiple repositories (Needed for #24).
2015-10-30 23:29:03 +01:00
Adam Waldenberg
258eefa1e7 The clone module can now handle multiple repositories.
This is needed to allow gitinspector to be able to clone multiple
repositories during the same execution (Needed for #24).
2015-10-30 23:16:33 +01:00
Adam Waldenberg
d88ff2c5b9 Slight cleanup in gitinspector.py.
Renamed all "local" declarations in main().
2015-10-30 03:41:09 +01:00
Adam Waldenberg
c01a59430c Rewrote the config module into a class (GitConfig).
This class takes the initialization variable "global_only" which
will be set in the future whenever multiple repositories are
specified (See issue #24).

This will make sure that the git configuration is only read from the
global settings instead of per-repository.
2015-10-30 01:24:33 +01:00
Adam Waldenberg
5af89f798a Added a note about the supplied Debian packages to README.md. 2015-10-29 03:58:09 +01:00
Adam Waldenberg
d30715cc84 The changes module now also outputs the progress when in text mode.
Furthermore, the output also shows the pass currently running. This is
important, as the progress goes from 0 to 100%, twice.
2015-10-29 03:37:08 +01:00
Adam Waldenberg
ce91c4176a Moved blame.Blame.output_progress to terminal.output_progress.
This enables us to output progress from multiple modules.
2015-10-29 03:36:53 +01:00
Adam Waldenberg
6606d8b13c Progress from the blame module is now printed regardless of --hard. 2015-10-29 03:36:49 +01:00
Adam Waldenberg
1ed9b5e3cf Re-factored the changes module and made it more independent.
This will make it easier to add support for the merging of statistics from
multiple repositories (as discussed in issue #24).
2015-10-29 03:09:46 +01:00
Adam Waldenberg
fa04eb57f3 Bumped the version number to the next development iteration. 2015-10-29 02:25:20 +01:00
Adam Waldenberg
d941487280 Imported CHANGES.txt from most recent extra-release branch. 2015-10-29 01:32:15 +01:00