From 2223a02047c23cf1b9f005896b49b813c76f4385 Mon Sep 17 00:00:00 2001 From: Joris Roovers Date: Wed, 2 Mar 2016 09:44:21 +0100 Subject: Adding GitCommit class representing a git commit Up until now, gitlint only had to notion of a git commit message. This commit adds the GitCommit class which stores both the commit message, and meta-info related to the commit (author, date, commit id, etc). This will allow us to write gitlint rules based on meta-info (e.g. restrictions on the author email address format). For now, the commit_msg property of the GitContext class just refers to the commit_msg of the last commit. This was done as a temporary measure to reduce the amount of code change in a single commit. Also made some minor documentation sites updates (not published yet). --- docs/configuration.md | 6 ++++-- docs/index.md | 5 ++++- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'docs') diff --git a/docs/configuration.md b/docs/configuration.md index 951b624..6486d6d 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -54,7 +54,7 @@ Details about rule config options can be found in the Rules page. # Commandline config # -Alternatively, you can use one or more ```-c``` flags like so: +You can also use one or more ```-c``` flags like so: ``` $ gitlint -c general.verbosity=2 -c title-max-length.line-length=80 -c B1.line-length=100 @@ -62,7 +62,9 @@ $ gitlint -c general.verbosity=2 -c title-max-length.line-length=80 -c B1.line-l The generic config flag format is ```-c .