From f0515672064da7a96c828036c3966d5e0e1c4ba1 Mon Sep 17 00:00:00 2001
From: Chad Barraford
Date: Tue, 7 Mar 2017 06:57:23 -0500
Subject: [PATCH] Add golang support
---
DESCRIPTION.txt | 2 +-
README.md | 2 +-
docs/gitinspector.1 | 2 +-
docs/gitinspector.html | 4 ++--
docs/gitinspector.txt | 2 +-
gitinspector/comment.py | 6 +++---
gitinspector/extensions.py | 2 +-
gitinspector/metrics.py | 4 ++--
8 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/DESCRIPTION.txt b/DESCRIPTION.txt
index dd6c895..3c1b59a 100644
--- a/DESCRIPTION.txt
+++ b/DESCRIPTION.txt
@@ -11,7 +11,7 @@ student projects in the course Object-oriented Programming Project
(TDA367/DIT211) at Chalmers University of Technology and Gothenburg University.
- Shows cumulative work by each author in the history.
-- Filters results by extension (default: java,c,cpp,h,hpp,py,glsl,rb,js,sql).
+- Filters results by extension (default: java,c,cpp,h,hpp,py,glsl,rb,js,sql,go).
- Can display a statistical timeline analysis.
- Scans for all filetypes (by extension) found in the repository.
- Multi-threaded; uses multiple instances of git to speed up analysis.
diff --git a/README.md b/README.md
index 9f93b05..48dcf65 100644
--- a/README.md
+++ b/README.md
@@ -16,7 +16,7 @@ A full [Documentation](https://github.com/ejwa/gitinspector/wiki/Documentation)
### Some of the features
* Shows cumulative work by each author in the history.
- * Filters results by extension (default: java,c,cc,cpp,h,hh,hpp,py,glsl,rb,js,sql).
+ * Filters results by extension (default: java,c,cc,cpp,h,hh,hpp,py,glsl,rb,js,sql,go).
* Can display a statistical timeline analysis.
* Scans for all filetypes (by extension) found in the repository.
* Multi-threaded; uses multiple instances of git to speed up analysis when possible.
diff --git a/docs/gitinspector.1 b/docs/gitinspector.1
index e268c5e..586ae91 100644
--- a/docs/gitinspector.1
+++ b/docs/gitinspector.1
@@ -45,7 +45,7 @@ Mandatory arguments to long options are mandatory for short options too\&. Boole
.PP
\fB\-f, \-\-file\-types\fR=EXTENSIONS
.RS 4
-A comma separated list of file extensions to include when computing statistics\&. The default extensions used are: java,c,cc,cpp,h,hh,hpp,py,glsl,rb,js,sql\&. Specifying a single
+A comma separated list of file extensions to include when computing statistics\&. The default extensions used are: java,c,cc,cpp,h,hh,hpp,py,glsl,rb,js,sql,go\&. Specifying a single
\fI*\fR
asterisk character includes files with no extension\&. Specifying two consecutive
\fI**\fR
diff --git a/docs/gitinspector.html b/docs/gitinspector.html
index dbfa239..6e6e939 100644
--- a/docs/gitinspector.html
+++ b/docs/gitinspector.html
@@ -2,7 +2,7 @@
gitinspector
Name
gitinspector — statistical analysis tool for git repositories
Synopsis
gitinspector [OPTION]… [REPOSITORY]
DESCRIPTION
Analyze and gather statistics about a git repository. The defaut analysis shows general statistics per author, which can be complemented with a timeline analysis that shows the workload and activity of each author. Under normal operation, gitinspector filters the results to only show statistics about a number of given extensions and by default only includes source files in the statistical analysis.
Several output formats are supported, including plain text, HTML, JSON and XML.
OPTIONS
List information about the repository in REPOSITORY. If no repository is specified, the current directory is used. If multiple repositories are given, information will be fetched from the last repository specified.
Mandatory arguments to long options are mandatory for short options too. Boolean arguments can only be given to long options.
-f, --file-types=EXTENSIONS
- A comma separated list of file extensions to include when computing statistics. The default extensions used are: java,c,cc,cpp,h,hh,hpp,py,glsl,rb,js,sql. Specifying a single * asterisk character includes files with no extension. Specifying two consecutive ** asterisk characters includes all files regardless of extension.
+ A comma separated list of file extensions to include when computing statistics. The default extensions used are: java,c,cc,cpp,h,hh,hpp,py,glsl,rb,js,sql,go. Specifying a single * asterisk character includes files with no extension. Specifying two consecutive ** asterisk characters includes all files regardless of extension.
-F, --format=FORMAT
@@ -102,4 +102,4 @@
gitinspector -x "email:.com$", filter out statistics from all email addresses ending with ".com"
USING GIT TO CONFIGURE GITINSPECTOR
Options in gitinspector can be set using git config. Consequently, it is possible to configure gitinspector behavior globally (in all git repositories) or locally (in a specific git repository). It also means that settings will be permanently stored. All the long options that can be given to gitinspector can also be configured via git config (and take the same arguments).
To configure how gitinspector should behave in all git repositories, execute the following git command:
git config --global inspector.option setting
To configure how gitinspector should behave in a specific git repository, execute the following git command (with the current directory standing inside the repository in question):