Commit Graph

381 Commits

Author SHA1 Message Date
Adam Waldenberg
124ca74650 HTML output was broken when authors with quotes were sent to JavaScript.
Fixed by using json.dumps() to escape the author name before passing it to
the JavaScript output.
2015-09-08 01:35:42 +02:00
Adam Waldenberg
98c375a0ab Fixed bug indirectly introduced with commit 0447da19.
When reversing the git log, we forgot to take the interval into
consideration; breaking the --since and--until flags.
2015-09-07 02:22:58 +02:00
Adam Waldenberg
b48c65efb1 All subprocess.Popen calls now use the list variant.
Most (all?) hard coded quotations have been removed in favor of automation
and the pipes or shlex modules.
2015-09-07 01:53:24 +02:00
Adam Waldenberg
25b5507267 Moved test resouces into a resources directory. 2015-09-05 10:27:29 +02:00
Adam Waldenberg
c5e861d662 Bumped the version number to the next development iteration. 2015-09-05 10:25:08 +02:00
Adam Waldenberg
ade7a5ad9b Bumped the version number to 0.4.0. 2015-09-01 02:58:00 +02:00
Adam Waldenberg
b20d91b3cb Added CHANGES document.
This file contains a summary of changes in each public release of
gitinspector.
2015-09-01 02:58:00 +02:00
Adam Waldenberg
15c1816a73 Flag for generating metrics added to the example outputs (README.md). 2015-09-01 02:58:00 +02:00
Adam Waldenberg
8b4ac7d423 Added project badges to the top of README.md (powered by Shields.io). 2015-08-29 01:21:26 +02:00
Adam Waldenberg
52946d4770 README.md links to htmlpreview.github.io changed to cdn.rawgit.com.
This service works much better and does not seem to interfere with the
JQuery scripting like htmlpreview.* does.
2015-08-28 01:41:27 +02:00
Adam Waldenberg
bf9e5b700c Added a link to the documentation in README.md 2015-08-28 01:15:00 +02:00
Adam Waldenberg
42b2288c85 Fixed remaining issues in README.md
The logo and example thumbnail are now integrated into the page more nicely.
Also, links to the wiki were not properly defined.
2015-08-25 15:16:19 +02:00
Roman Levin
edf1843300 Fix examples table in README.md 2015-08-25 09:40:41 +02:00
Adam Waldenberg
4aa388553c Added an initial README.md to properly introduce the project on GitHub. 2015-08-25 04:29:12 +02:00
Kamila Chyla
96e2b0fdf0 Prevent ZeroDivisionError in get_stability method (Fixes #63).
Signed-off-by: Adam Waldenberg <adam.waldenberg@ejwa.se>
2015-08-25 02:23:46 +02:00
Adam Waldenberg
30a20e6b52 All doc and source code URL's now also point to the new home on GitHub.
Regenerated all the documentation from the AsciiDoc document.
2015-08-24 17:34:14 +02:00
Adam Waldenberg
4803c511df Updated invalid year strings in version information. 2015-08-24 17:23:54 +02:00
Adam Waldenberg
1bc3e026ed Updated README.txt to refer to the new home on GitHub. 2015-08-24 11:03:59 +02:00
Adam Waldenberg
e8648a51c2 Added documentation written in AsciiDoc (Fixes issue 45).
Using the AsciiDoc file, documentation was generated in man (troff), PDF
and HTML formats.
2015-02-22 11:22:39 +01:00
Adam Waldenberg
02b6db512b Strip exotic characters from the table-sorter plugin.
This is needed under certain circumstances whenever the terminal locale
can't be determined and can't handle unicode characters.
2015-02-22 00:53:38 +01:00
Adam Waldenberg
de602bb70f Added workaround for missing LANG environment variable (Fixes issue 55). 2015-02-16 16:10:12 +01:00
Kamila Chyla
6c45819a62 Updated Polish translation.
Update issue 16
Status: Done
2014-12-30 09:10:32 +01:00
Adam Waldenberg
568a5e5e8b Fixed the terminal column alignment for languages with multi-column chars.
This is for example needed for the Chinese and Korean translations to work
correctly when using terminal output.
2014-12-19 03:02:08 +01:00
Adam Waldenberg
b327238496 Fixed a mistake in the Swedish translation.
The translation for the cyclomatic complexity string was using the wrong
format.
2014-12-19 02:59:50 +01:00
Adam Waldenberg
1230fcf80c Changes.get_latest_author_by_email() was broken under Python 3.
This is because of the patch committed with revision 68a6e90228. As
Python 3 stores unicode strings by default, we need to convert them back.

This change will hopefully fix it once and for all.
2014-12-18 04:30:04 +01:00
Adam Waldenberg
eed6d0debf localization.get_date() was failing with unicode characters under Python 2.
Fixed by adding a simple decode call.
2014-12-18 04:07:28 +01:00
Adam Waldenberg
8c464fddd4 Some minor tweaks to the German translation. 2014-12-08 11:18:34 +01:00
Philipp Nowak
a42726aedb Added German translation.
Update issue 25
Status: Done
2014-12-08 03:41:41 +01:00
Bill Wang
e169421fa9 Updated Chinese translation (Fixes issue 11). 2014-12-07 11:27:19 +01:00
Dmitry Dzhus
c6928bd675 Recognize Haskell (.hs) comments (Fixes issue 49).
Signed-off-by: Adam Waldenberg <adam.waldenberg@ejwa.se>
2014-12-07 11:03:51 +01:00
Luca Motta
cbed2ac13f Updated Italian translation.
Update issue 20
Status: Done
2014-12-03 12:12:39 +01:00
Yannick Moy
2ca997cc9d Added French translation.
Update issue 38
Status: Done
2014-11-30 10:18:18 +01:00
Adam Waldenberg
e703856560 The Swedish translation had 2013 instead of 2014 in it's version text. 2014-11-30 10:09:00 +01:00
Adam Waldenberg
b22d614849 Recognize comments in .po and .pot files. 2014-11-29 07:01:24 +01:00
Adam Waldenberg
4d6e51a760 Updated the locale template (.pot) and the Swedish translation.
A number of new strings have been added since the last version.
2014-11-29 06:37:34 +01:00
Adam Waldenberg
26e2ce7c07 Added help text (--help) for the new revision filtering. 2014-11-29 06:35:07 +01:00
Adam Waldenberg
bc6be1c56f Fixed some pylint violations. 2014-11-27 12:38:58 +01:00
Adam Waldenberg
bc9fd8b207 Localized error message in the basedir module. 2014-11-27 12:16:42 +01:00
Adam Waldenberg
d315829e9d Added commit filtering by revision (Fixes issue 33).
Specific commits can now be filtered by using;

-x, --exclude="revision:<SHA-1>"

Like with all other filtering in gitinspector, regular expressions are
supported. Likewise, multiple revisions can be specified using a comma or
by simply supplying multiple exclude parameters.

As usual, both the commit module and blame module take this filtering into
account.
2014-11-27 08:39:17 +01:00
Adam Waldenberg
8755fb33dc Doesn't start when using "C" locale (Fixes issue 29). 2014-11-24 09:36:11 +01:00
Christian Kastner
3010359eb2 Add missing html.footer to htmlembedded output (Fixes issue 48).
Signed-off-by: Adam Waldenberg <adam.waldenberg@ejwa.se>
2014-11-23 01:37:18 +01:00
Adam Waldenberg
dd50994f2c The metrics module was failing on paths with spaces (Fixes issue 47). 2014-11-21 02:55:29 +01:00
Christian Kastner
e3b4857eb6 Gracefully handle non-git-repo path (Fixes issue 44).
Error out gracefully when gitinspector is called with a path that does not
point to a git repository, instead of printing a stack trace.

Signed-off-by: Christian Kastner <debian@kvr.at>
Signed-off-by: Adam Waldenberg <adam.waldenberg@ejwa.se>
2014-11-20 03:41:08 +01:00
Jon Warghed
68a6e90228 Handle escaping in get_latest_author_by_email() (Fixes issue 46).
Signed-off-by: Adam Waldenberg <adam.waldenberg@ejwa.se>
2014-11-19 07:46:07 +01:00
Adam Waldenberg
1d2fd619bd Fixed a special and unique KeyError exception that could occur.
This is because of a mismatch between the changes module and the
blame module. Seems to be triggered by empty rows in source files.
2014-11-06 10:46:23 +01:00
Adam Waldenberg
fa5e5411f5 Fixed problem with the new email detection patch. 2014-11-03 11:02:06 +01:00
Yannick Moy
12dce7f365 Recognize comments in Ada and OCaml.
Signed-off-by: Adam Waldenberg <adam.waldenberg@ejwa.se>
2014-11-03 10:34:46 +01:00
Diomidis Spinellis
bc5b0abe74 Remove assumption of Python path.
For example, on a FreeBSD system Python can be installed in
/usr/local/bin/python.

Some systems have multiple interpreters installed in a variety of
locations.  The attached patch corrects the problem by using the
env(1) command to run Python.

Signed-off-by: Adam Waldenberg <adam.waldenberg@ejwa.se>
2014-11-03 10:19:04 +01:00
Diomidis Spinellis
b20f15e794 More stable author email extraction.
The email search regular expression in the git-blame output can be tripped
by a similar pattern appearing in the source code. The supplied patch
fixes the problem.

Signed-off-by: Adam Waldenberg <adam.waldenberg@ejwa.se>
2014-11-03 10:12:44 +01:00
Chris Barry
d6a2f33de5 Use https where possible.
Signed-off-by: Adam Waldenberg <adam.waldenberg@ejwa.se>
2014-11-03 09:56:49 +01:00