Debian Codegraph @

CHANGELOG.md

raw symbols SCIP
1 # Changelog
2
3 This file documents notable changes introduced in gitlint releases.
4
5 # v0.20.0 (Unreleased)
6
7 # v0.19.1 (2023-03-10)
8
9 ## Development
10 - Fix issue that prevented homebrew packages from being built ([#460](https://github.com/jorisroovers/gitlint/issues/460))
11 - Switch to using pypa/build in CI ([#463](https://github.com/jorisroovers/gitlint/issues/463)) - thanks @webknjaz
12
13
14 # v0.19.0 (2023-03-07)
15
16 This release was primarily focussed on modernizing gitlint's build and test tooling (details: [#378](https://github.com/jorisroovers/gitlint/issues/378)).
17
18 ## General
19 - Python 3.6 no longer supported ([EOL since 2021-12-23](https://endoflife.date/python)) ([#379](https://github.com/jorisroovers/gitlint/issues/379))
20 - This is the last release to support the [sh](https://amoffat.github.io/sh/) library (used under-the-hood to execute git commands) by setting `GITLINT_USE_SH_LIB=1`. This is already disabled by default since v0.18.0.
21
22 ## Features
23 - Allow for a single commit in the `--commits` cmd-line param ([#412](https://github.com/jorisroovers/gitlint/issues/412)) - thanks [carlescufi](https://github.com/carlescufi)
24 - Gitlint now separates `FILE_ENCODING` (always UTF-8) from `TERMINAL_ENCODING` (terminal dependent), this should improve issues with unicode. Use `gitlint --debug` to inspect these values. ([#424](https://github.com/jorisroovers/gitlint/issues/424))
25
26 ## Bugfixes
27 - `ignore-by-author-name` crashes without --staged ([#445](https://github.com/jorisroovers/gitlint/issues/445))
28 - Various documentation fixes ([#401](https://github.com/jorisroovers/gitlint/issues/401), [#433](https://github.com/jorisroovers/gitlint/issues/433)) - Thanks [scop](https://github.com/scop)
29
30 ## Development
31 - Adopted [hatch](https://hatch.pypa.io/latest/) for project management ([#384](https://github.com/jorisroovers/gitlint/issues/384)).
32 This significantly improves the developer workflow, please read the updated [CONTRIBUTING](https://jorisroovers.com/gitlint/contributing/) page.
33 - Adopted [ruff](https://github.com/charliermarsh/ruff) for linting, replacing pylint ([#404](https://github.com/jorisroovers/gitlint/issues/404))
34 - Gitlint now publishes [dev builds on every commit to main](https://jorisroovers.github.io/gitlint/contributing/#dev-builds) ([#429](https://github.com/jorisroovers/gitlint/issues/429))
35 - Gitlint now publishes a [`latest_dev` docker image](https://hub.docker.com/r/jorisroovers/gitlint/tags?name=latest_dev) on every commit to main ([#451](https://github.com/jorisroovers/gitlint/issues/452)) ([#452](https://github.com/jorisroovers/gitlint/issues/451))
36 - Dependencies updated
37 - Many improvements to the [CI/CD worfklows](https://github.com/jorisroovers/gitlint/tree/main/.github/workflows)
38 - Fixed coveralls integration: [coveralls.io/github/jorisroovers/gitlint](https://coveralls.io/github/jorisroovers/gitlint)
39 - Improve unit test coverage ([#453](https://github.com/jorisroovers/gitlint/issues/453))
40 - Integration test fixes on windows ([#392](https://github.com/jorisroovers/gitlint/issues/392), [#397](https://github.com/jorisroovers/gitlint/issues/397))
41 - Devcontainer improvements ([#428](https://github.com/jorisroovers/gitlint/issues/428))
42 - Removal of Dockerfile.dev ([#390](https://github.com/jorisroovers/gitlint/issues/390))
43 - Fix most integration tests on Windows
44 - Fix Windows unit tests ([#383](https://github.com/jorisroovers/gitlint/issues/383))
45 - Introduce a gate/check GHA job ([#375](https://github.com/jorisroovers/gitlint/issues/375)) - Thanks [webknjaz](https://github.com/webknjaz)
46 - Thanks to [sigmavirus24](https://github.com/sigmavirus24) for continued overall help and support
47
48
49 # v0.18.0 (2022-11-16)
50 Contributors:
51 Special thanks to all contributors for this release - details inline!
52
53 ## General
54 - Python 3.11 support
55 - Last release to support Python 3.6 ([EOL since 2021-12-23](https://endoflife.date/python))
56 - **Behavior Change**: In a future release, gitlint will be switching to use `re.search` instead of `re.match` semantics for all rules. Your rule regexes might need updating as a result, gitlint will print a warning if so. [More details are in the docs](https://jorisroovers.com/gitlint/configuration/#regex-style-search). ([#254](https://github.com/jorisroovers/gitlint/issues/254))
57 - gitlint no longer uses the [sh](https://amoffat.github.io/sh/) library by default in an attempt to reduce external dependencies. In case of issues, the use of `sh` can be re-enabled by setting the env var `GITLINT_USE_SH_LIB=1`. This fallback will be removed entirely in a future gitlint release. ([#351](https://github.com/jorisroovers/gitlint/issues/351))
58
59 ## Features
60 - `--commits` now also accepts a comma-separated list of commit hashes, making it possible to lint a list of non-contiguous commits without invoking gitlint multiple times ([#283](https://github.com/jorisroovers/gitlint/issues/283))
61 - Improved handling of branches that have no commits ([#188](https://github.com/jorisroovers/gitlint/issues/189)) - thanks [domsekotill](https://github.com/domsekotill)
62 - Support for `GITLINT_CONFIG` env variable ([#189](https://github.com/jorisroovers/gitlint/issues/188)) - thanks [Notgnoshi](https://github.com/Notgnoshi)
63 - Added [a new `gitlint-ci` pre-commit hook](https://jorisroovers.com/gitlint/#gitlint-and-pre-commit-in-ci), making it easier to run gitlint through pre-commit in CI ([#191](https://github.com/jorisroovers/gitlint/issues/191)) - thanks [guillaumelambert](https://github.com/guillaumelambert)
64
65 ## Contrib Rules
66 - New [contrib-disallow-cleanup-commits](https://jorisroovers.com/gitlint/contrib_rules/#cc2-contrib-disallow-cleanup-commits) rule ([#312](https://github.com/jorisroovers/gitlint/issues/312)) - thanks [matthiasbeyer](https://github.com/matthiasbeyer)
67 - New [contrib-allowed-authors](https://jorisroovers.com/gitlint/contrib_rules/#cc3-contrib-allowed-authors) rule ([#358](https://github.com/jorisroovers/gitlint/issues/358)) - thanks [stauchert](https://github.com/stauchert)
68
69 ## User Defined rules
70 - Gitlint now recognizes `fixup=amend` commits (see related [git documentation](https://git-scm.com/docs/git-commit#Documentation/git-commit.txt---fixupamendrewordltcommitgt)), available as `commit.is_fixup_amend_commit=True`
71 - Gitlint now parses diff **stat** information, available in `commit.changed_files_stats` ([#314](https://github.com/jorisroovers/gitlint/issues/314))
72
73 ## Bugfixes
74 - Use correct encoding when using `--msg-filename` parameter ([#310](https://github.com/jorisroovers/gitlint/issues/310))
75 - Various documentation fixes ([#244](https://github.com/jorisroovers/gitlint/issues/244)) ([#263](https://github.com/jorisroovers/gitlint/issues/263)) ([#266](https://github.com/jorisroovers/gitlint/issues/266)) ([#294](https://github.com/jorisroovers/gitlint/issues/294)) ([#295](https://github.com/jorisroovers/gitlint/issues/295)) ([#347](https://github.com/jorisroovers/gitlint/issues/347)) ([#364](https://github.com/jorisroovers/gitlint/issues/364)) - thanks [scop](https://github.com/scop), [OrBin](https://github.com/OrBin), [jtaylor100](https://github.com/jtaylor100), [stauchert](https://github.com/stauchert)
76
77 ## Development
78 - Dependencies updated
79 - Moved to [black](https://github.com/psf/black) for formatting
80 - Fixed nasty CI issue ([#298](https://github.com/jorisroovers/gitlint/issues/298))
81 - Unit tests fix ([#256](https://github.com/jorisroovers/gitlint/issues/256)) - thanks [carlsmedstad](https://github.com/carlsmedstad)
82 - Vagrant box removed in favor of github dev containers ([#348](https://github.com/jorisroovers/gitlint/issues/348))
83 - Removed a few lingering references to the `master` branch in favor of `main`
84 - Moved [roadmap and project planning](https://github.com/users/jorisroovers/projects/1) to github projects
85 - Thanks to [sigmavirus24](https://github.com/sigmavirus24) for continued overall help and support
86
87 # v0.17.0 (2021-11-28)
88 Contributors:
89 Special thanks to all contributors for this release, in particular [andersk](https://github.com/andersk) and [sigmavirus24](https://github.com/sigmavirus24).
90
91 ## General
92 - Gitlint is now split in 2 packages: `gitlint` and `gitlint-core`. This allows users to install gitlint without pinned dependencies (which is the default) ([#162](https://github.com/jorisroovers/gitlint/issues/162))
93 - Under-the-hood: dependencies updated
94
95 # v0.16.0 (2021-10-08)
96
97 Contributors:
98 Special thanks to all contributors for this release, in particular [sigmavirus24](https://github.com/sigmavirus24), [l0b0](https://github.com/l0b0) and [rafaelbubach](https://github.com/rafaelbubach).
99
100 ## General
101 - Python 3.10 support
102 - Heads-up: [Python 3.6 will become EOL at the end of 2021](https://endoflife.date/python). It's likely that future gitlint releases will stop supporting Python 3.6 as a result. We will continue to support Python 3.6 as long as it's easily doable, which in practice usually means as long as our dependencies support it.
103
104 ## Features
105 - `--commit <ref>` flag to more easily lint a single commit message ([#141](https://github.com/jorisroovers/gitlint/issues/141))
106 - `--fail-without-commits` flag will force gitlint to fail ([exit code 253](https://jorisroovers.com/gitlint/#exit-codes)) when the target commit range is empty (typically when using `--commits`) ([#193](https://github.com/jorisroovers/gitlint/issues/193))
107
108 ## Rules
109 - **New Rule**: [ignore-by-author-name](http://jorisroovers.github.io/gitlint/rules/#i4-ignore-by-author-name) allows users to skip linting commit messages made by specific authors
110
111 ## Bugfixes
112 - [contrib-title-conventional-commits (CT1)](https://jorisroovers.com/gitlint/contrib_rules/#ct1-contrib-title-conventional-commits) now properly enforces the commit type ([#185](https://github.com/jorisroovers/gitlint/issues/185))
113 - [contrib-title-conventional-commits (CT1)](https://jorisroovers.com/gitlint/contrib_rules/#ct1-contrib-title-conventional-commits) now supports the BREAKING CHANGE symbol "!" ([#186](https://github.com/jorisroovers/gitlint/issues/186))
114
115 ## Development
116 - Dependencies updated
117 - Test and github action improvements
118
119 # v0.15.1 (2021-04-16)
120
121 Contributors:
122 Special thanks to all contributors for this release, in particular [PW999](https://github.com/PW999), [gsemet](https://github.com/gsemet) and [Lorac](https://github.com/Lorac).
123
124 ## Bugfixes
125 - Git commit message body with only new lines is not longer considered empty by `body-is-missing` ([#176](https://github.com/jorisroovers/gitlint/issues/176))
126 - Added compatibility with `git commit -s` for `contrib-requires-signed-off-by` rule ([#178](https://github.com/jorisroovers/gitlint/pull/178))
127 - Minor tweak to gitlint commit-hook output ([#173](https://github.com/jorisroovers/gitlint/pull/173))
128 - All dependencies have been upgraded to the latest available versions (`Click==7.1.2`, `arrow==1.0.3`, `sh==1.14.1`).
129 - Minor doc fixes
130
131 # v0.15.0 (2020-11-27)
132
133 Contributors:
134 Special thanks to [BrunIF](https://github.com/BrunIF), [lukech](https://github.com/lukech), [Cielquan](https://github.com/Cielquan), [harens](https://github.com/harens) and [sigmavirus24](https://github.com/sigmavirus24).
135
136 ## General
137
138 - **This release drops support for Python 2.7 and Python 3.5 ([both are EOL](https://endoflife.date/python)). Other than a few minor fixes, there are no functional differences from the 0.14.0 release.**
139 - **Mac users**: Gitlint can now be installed using both homebrew (upgraded to latest) and macports. Special thanks to [@harens](https://github.com/harens) for maintaining these packages (best-effort).
140
141 ## Bugfixes
142 - Gitlint now properly handles exceptions when using its built-in commit-msg hook ([#166](https://github.com/jorisroovers/gitlint/issues/166)).
143
144 ## Development
145 - All dependencies have been upgraded to the latest available versions (`Click==7.1.2`, `arrow==0.17.0`, `sh==1.14.1`).
146 - Much under-the-hood refactoring as a result of dropping Python 2.7
147
148 # v0.14.0 (2020-10-24)
149
150 Contributors:
151 Special thanks to all contributors for this release, in particular [mrshu](https://github.com/mrshu), [glasserc](https://github.com/glasserc), [strk](https://github.com/strk), [chgl](https://github.com/chgl), [melg8](https://github.com/melg8) and [sigmavirus24](https://github.com/sigmavirus24).
152
153 ## General
154 - **IMPORTANT: Gitlint 0.14.x will be the last gitlint release to support Python 2.7 and Python 3.5, as [both are EOL](https://endoflife.date/python) which makes it difficult to keep supporting them.**
155 - Python 3.9 support
156 - [Named Rules](http://jorisroovers.github.io/gitlint/#named-rules) allow users to have multiple instances of the same rule active at the same time. This is useful when you want to enforce the same rule multiple times but with different options ([#113](https://github.com/jorisroovers/gitlint/issues/113), [#66](https://github.com/jorisroovers/gitlint/issues/66))
157 - [User-defined Configuration Rules](http://jorisroovers.github.io/gitlint/user_defined_rules/#configuration-rules) allow users to dynamically change gitlint's configuration and/or the commit *before* any other rules are applied.
158 - The `commit-msg` hook has been re-written in Python (it contained a lot of Bash before), fixing a number of platform specific issues. Existing users will need to reinstall their hooks (`gitlint uninstall-hook; gitlint install-hook`) to make use of this.
159 - Most general options can now be set through environment variables (e.g. set the `general.ignore` option via `GITLINT_IGNORE=T1,T2`). The list of available environment variables can be found in the [configuration documentation](http://jorisroovers.github.io/gitlint/configuration).
160 - Users can now use `self.log.debug("my message")` for debugging purposes in their user-defined rules. Debug messages will show up when running `gitlint --debug`.
161 - **Breaking**: User-defined rule id's can no longer start with 'I', as those are reserved for [built-in gitlint ignore rules](http://jorisroovers.github.io/gitlint/rules/#i1-ignore-by-title).
162 - New `RegexOption` rule [option type for use in user-defined rules](http://jorisroovers.github.io/gitlint/user_defined_rules/#options). By using the `RegexOption`, regular expressions are pre-validated at gitlint startup and compiled only once which is much more efficient when linting multiple commits.
163
164 ## Rules
165 - **New Rule**: [title-min-length](http://jorisroovers.github.io/gitlint/rules/#t8-title-min-length) enforces a minimum length on titles (default: 5 chars) ([#138](https://github.com/jorisroovers/gitlint/issues/138))
166 - **New Rule**: [body-match-regex](http://jorisroovers.github.io/gitlint/rules/#b8-body-match-regex) allows users to enforce that the commit-msg body matches a given regex ([#130](https://github.com/jorisroovers/gitlint/issues/130))
167 - **New Rule**: [ignore-body-lines](http://jorisroovers.github.io/gitlint/rules/#i3-ignore-body-lines) allows users to
168 [ignore parts of a commit](http://jorisroovers.github.io/gitlint/gitlint/#ignoring-commits) by matching a regex against
169 the lines in a commit message body ([#126](https://github.com/jorisroovers/gitlint/issues/126))
170
171 ## Contrib Rules
172 - Added 'ci' and 'build' to conventional commit types ([#135](https://github.com/jorisroovers/gitlint/issues/135))
173
174 ## Bugfixes
175 - Improved UTF-8 fallback on Windows (ongoing - [#96](https://github.com/jorisroovers/gitlint/issues/96))
176 - Windows users can now use the 'edit' function of the `commit-msg` hook ([#94](https://github.com/jorisroovers/gitlint/issues/94))
177 - Doc update: Users should use `--ulimit nofile=1024` when invoking gitlint using Docker ([#129](https://github.com/jorisroovers/gitlint/issues/129))
178 - The `commit-msg` hook was broken in Ubuntu's gitlint package due to a python/python3 mismatch ([#127](https://github.com/jorisroovers/gitlint/issues/127))
179 - Better error message when no git username is set ([#149](https://github.com/jorisroovers/gitlint/issues/149))
180 - Options can now actually be set to `None` (from code) to make them optional.
181 - Ignore rules no longer have `"None"` as default regex, but an empty regex - effectively disabling them by default (as intended).
182
183 ## Development
184 - Minor performance improvements (removed some unnecessary regex matching),
185 - Test improvements,
186 - Improved debug logging,
187 - CI runs on pull requests
188 - PR request template
189
190 # v0.13.1 (2020-02-26)
191
192 ## Bugfixes
193 - Patch to enable `--staged` flag for pre-commit.
194 - Minor doc updates ([#109](https://github.com/jorisroovers/gitlint/issues/109))
195
196 # v0.13.0 (2020-02-25)
197
198 ## General
199 - Python 3.8 support
200 - Python 3.4 no longer supported. Python 3.4 has [reached EOL](https://www.python.org/dev/peps/pep-0429/#id4) and an increasing
201 of gitlint's dependencies have dropped support which makes it hard to maintain.
202 - Improved Windows support: better unicode handling. [Issues remain](https://github.com/jorisroovers/gitlint/issues?q=is%3Aissue+is%3Aopen+label%3Awindows) but the basic functionality works.
203 - **Behavior Change**: Revert Commits are now recognized and ignored by default ([#99](https://github.com/jorisroovers/gitlint/issues/99))
204
205 ## Features
206 - `--staged` flag: gitlint can now detect meta-data (such as author details, changed files, etc) of staged/pre-commits. Useful when you use [gitlint's commit-msg hook](https://jorisroovers.github.io/gitlint/#using-gitlint-as-a-commit-msg-hook) or [precommit](https://jorisroovers.github.io/gitlint/#using-gitlint-through-pre-commit) ([#105](https://github.com/jorisroovers/gitlint/issues/105))
207 - New branch properties on `GitCommit` and `GitContext`, useful when writing your own user-defined rules: `commit.branches` and `commit.context.current_branch` ([#108](https://github.com/jorisroovers/gitlint/issues/108))
208
209 ## Bugfixes
210 - Gitlint no longer crashes when acting on empty repositories (this only occurred in specific circumstances).
211 - Changed files are now better detected in repos that only have a root commit
212 - Improved performance and memory (gitlint now caches git properties)
213 - Improved `--debug` output
214 - Improved documentation
215
216 ## Development
217 - Dependencies updated
218 - Unit and integration test improvements
219 - Migrated from TravisCI to Github Actions.
220
221 # v0.12.0 (2019-07-15)
222
223 Contributors:
224 Special thanks to all contributors for this release, in particular [@rogalksi](https://github.com/rogalski) and [@byrney](https://github.com/byrney).
225
226 ## General
227 - Python 3.3 no longer supported. Python 3.4 is likely to follow in a future release as it has [reached EOL](https://www.python.org/dev/peps/pep-0429/#id4) as well.
228 - PyPy 3.5 support
229
230
231 ## Features
232 - [Contrib Rules](http://jorisroovers.github.io/gitlint/contrib_rules): community-contributed rules that are disabled
233 by default, but can be enabled through configuration. Contrib rules are meant to augment default gitlint behavior by
234 providing users with rules for common use-cases without forcing these rules on all gitlint users.
235 - **New Contrib Rule**: `contrib-title-conventional-commits` enforces the [Conventional Commits](https://www.conventionalcommits.org) spec. Details in our [documentation](http://jorisroovers.github.io/gitlint/contrib_rules/#ct1-contrib-title-conventional-commits).
236 - **New Contrib Rule**: `cc1-contrib-requires-signed-off-by` ensures that all commit messages contain a `Sign-Off-By` line. Details in our [documentation](http://jorisroovers.github.io/gitlint/contrib_rules/#cc1-contrib-requires-signed-off-by).
237 - If you're interested in adding new Contrib rules to gitlint, please start by reading the
238 [Contributing](http://jorisroovers.github.io/gitlint/contributing/) page. Thanks for considering!
239 - *Experimental (!)* Windows support: Basic functionality is working, but there are still caveats. For more details, please refer to [#20](https://github.com/jorisroovers/gitlint/issues/20) and the [open issues related to Windows](https://github.com/jorisroovers/gitlint/issues?q=is%3Aissue+is%3Aopen+label%3Awindows).
240 - Support for `--ignore-stdin` command-line flag to ignore any text send via stdin. ([#56](https://github.com/jorisroovers/gitlint/issues/56), [#89](https://github.com/jorisroovers/gitlint/issues/89))
241
242 ## Bugfixes
243 - [#68: Can't use install-hooks in with git worktree](https://github.com/jorisroovers/gitlint/issues/68)
244 - [#59: gitlint failed with configured commentchar](https://github.com/jorisroovers/gitlint/issues/59)
245
246 ## Development
247 - Dependencies updated
248 - Experimental Dockerfile
249 - Github issue template.
250
251 # v0.11.0 (2019-03-13)
252
253 ## General
254 - Python 3.7 support
255 - Python 2.6 no longer supported
256
257 ## Development
258 - Various dependency updates and under the hood fixes (see [#76](https://github.com/jorisroovers/gitlint/pull/76) for details).
259
260 Special thanks to @pbregener for his contributions related to python 3.7 support and test fixes.
261
262 # v0.10.0 (2018-04-15)
263 The 0.10.0 release adds the ability to ignore commits based on their contents,
264 support for [pre-commit](https://pre-commit.com/), and important fix for running gitlint in CI environments
265 (such as Jenkins, Gitlab, etc).
266
267 Special thanks to [asottile](https://github.com/asottile), [bdrung](https://github.com/bdrung), [pbregener](https://github.com/pbregener), [torwald-sergesson](https://github.com/torwald-sergesson), [RykHawthorn](https://github.com/RykHawthorn), [SteffenKockel](https://github.com/SteffenKockel) and [tommyip](https://github.com/tommyip) for their contributions.
268
269 ## General
270 - **Since it's becoming increasingly hard to support Python 2.6 and 3.3, we'd like to encourage our users to upgrade their
271 python version to 2.7 or 3.3+. Future versions of gitlint are likely to drop support for Python 2.6 and 3.3.**
272
273 ## Features
274 - Gitlint now supports [pre-commit.com](https://pre-commit.com).
275 [Details in our documentation](http://jorisroovers.github.io/gitlint/#using-gitlint-through-pre-commit)
276 ([#62](https://github.com/jorisroovers/gitlint/issues/62)).
277 - Gitlint now has a `--msg-filename` commandline flag that allows you to specify the commit message to lint via
278 a file ([#39](https://github.com/jorisroovers/gitlint/issues/39)).
279 - Gitlint will now be silent by default when a specified commit range is empty ([#46](https://github.com/jorisroovers/gitlint/issues/46)).
280 - Gitlint can now be installed on MacOS by brew via the [homebrew-devops](https://github.com/rockyluke/homebrew-devops) tap. To get the latest version of gitlint, always use pip for installation.
281 - If all goes well,
282 [gitlint will also be available as a package in the Ubuntu 18.04 repositories](https://launchpad.net/ubuntu/+source/gitlint).
283
284 ## Rules
285 - **New Rule**: `ignore-by-title` allows users to
286 [ignore certain commits](http://jorisroovers.github.io/gitlint/#ignoring-commits) by matching a regex against
287 a commit message title. ([#54](https://github.com/jorisroovers/gitlint/issues/54), [#57](https://github.com/jorisroovers/gitlint/issues/57)).
288 - **New Rule**: `ignore-by-body` allows users to
289 [ignore certain commits](http://jorisroovers.github.io/gitlint/#ignoring-commits) by matching a regex against
290 a line in a commit message body.
291
292 ## Bugfixes
293 - We fixed a nasty and recurring issue with running gitlint in CI. Hopefully that's the end of it :-) ([#40](https://github.com/jorisroovers/gitlint/issues/40)).
294 - Fix for custom git comment characters ([#48](https://github.com/jorisroovers/gitlint/issues/48)).
295
296 # v0.9.0 (2017-12-03)
297 The 0.9.0 release adds a new default `author-valid-email` rule, important bugfixes and special case handling.
298 Special thanks to [joshholl](https://github.com/joshholl), [ron8mcr](https://github.com/ron8mcr),
299 [omarkohl](https://github.com/omarkohl), [domo141](https://github.com/domo141), [nud](https://github.com/nud)
300 and [AlexMooney](https://github.com/AlexMooney) for their contributions.
301
302 ## General
303 - **Breaking change**: The `--commits` commandline flag now strictly follows the refspec format as interpreted
304 by the [`git rev-list <refspec>`](https://git-scm.com/docs/git-rev-list) command. This means
305 that linting a single commit using `gitlint --commits <ref>` won't work anymore. Instead, for single commits,
306 users now need to specificy `gitlint --commits <ref>^...<ref>`. On the upside, this change also means
307 that gitlint will now understand all refspec formatters, including `gitlint --commits HEAD` to lint all commits
308 in the repository. This fixes [#23](https://github.com/jorisroovers/gitlint/issues/23).
309 - **Breaking change**: Gitlint now always falls back on trying to read a git message from a local git repository, only
310 reading a commit message from STDIN if one is passed. Before, gitlint only read from the local git repository when
311 a TTY was present. This is likely the expected and desired behavior for anyone running gitlint in a CI environment.
312 This fixes [#40](https://github.com/jorisroovers/gitlint/issues/40) and
313 [#42](https://github.com/jorisroovers/gitlint/issues/42).
314 - **Behavior Change**: Gitlint will now by default
315 [ignore squash and fixup commits](http://jorisroovers.github.io/gitlint/#merge-fixup-and-squash-commits)
316 (fix for [#33: fixup messages should not trigger a gitlint violation](https://github.com/jorisroovers/gitlint/issues/33))
317
318 ## Features
319 - Support for custom comment characters ([#34](https://github.com/jorisroovers/gitlint/issues/34))
320 - Support for [`git commit --cleanup=scissors`](https://git-scm.com/docs/git-commit#git-commit---cleanupltmodegt)
321 ([#34](https://github.com/jorisroovers/gitlint/issues/34))
322
323 ## Rules
324 - New Rule: `author-valid-email` enforces a valid author email address. Details can be found in the
325 [Rules section of the documentation](http://jorisroovers.github.io/gitlint/rules/#m1-author-valid-email).
326
327 ## Bugfixes
328 - [#37: Prevent Commas in text fields from breaking git log printing](https://github.com/jorisroovers/gitlint/issues/37)
329
330 ## Development
331 - Debug output improvements
332
333 # v0.8.2 (2017-04-25)
334
335 The 0.8.2 release brings minor improvements, bugfixes and some under-the-hood changes. Special thanks to
336 [tommyip](https://github.com/tommyip) for his contributions.
337
338 ## Features
339 - `--extra-path` now also accepts a file path (in the past only directory paths where accepted).
340 Thanks to [tommyip](https://github.com/tommyip) for implementing this!
341 - gitlint will now show more information when using the `--debug` flag. This is initial work and will continue to
342 be improved upon in later releases.
343
344 ## Bugfixes
345 - [#24: --commits doesn't take commit specific config into account](https://github.com/jorisroovers/gitlint/issues/24)
346 - [#27: --commits returns the wrong exit code](https://github.com/jorisroovers/gitlint/issues/27)
347 ## Development
348 - Better unit and integration test coverage for `--commits`
349
350 # v0.8.1 (2017-03-16)
351
352 The 0.8.1 release brings minor tweaks and some experimental features. Special thanks to
353 [tommyip](https://github.com/tommyip) for his contributions.
354
355 ## General
356 - Experimental: Python 3.6 support
357 - Improved Windows error messaging: gitlint will now show a more descriptive error message when ran on windows.
358 See [#20](https://github.com/jorisroovers/gitlint/issues/20) for details on the lack of Windows support.
359
360 ## Features
361 - Experimental: Linting a range of commits.
362 [Documentation](http://jorisroovers.github.io/gitlint/#linting-a-range-of-commits).
363 Known Caveats: [#23](https://github.com/jorisroovers/gitlint/issues/23),
364 [#24](https://github.com/jorisroovers/gitlint/issues/24).
365 Closes [#14](https://github.com/jorisroovers/gitlint/issues/14). Thanks to [tommyip](https://github.com/tommyip)
366 for implementing this!
367
368 # v0.8.0 (2016-12-30)
369
370 The 0.8.0 release is a significant release that has been in the works for a long time. Special thanks to
371 [Claymore](https://github.com/Claymore), [gernd](https://github.com/gernd) and
372 [ZhangYaxu](https://github.com/ZhangYaxu) for submitting bug reports and pull requests.
373
374 ## General
375 - Full unicode support: you can now lint messages in any language! This fixes
376 [#16](https://github.com/jorisroovers/gitlint/issues/16) and [#18](https://github.com/jorisroovers/gitlint/pull/18).
377 - Pypy2 support!
378 - Various documentation improvements
379
380 ## Features
381 - User-defined rules: you can now
382 [define your own custom rules](http://jorisroovers.github.io/gitlint/user_defined_rules/)
383 if you want to extend gitlint's functionality.
384 - Debug output improvements: Gitlint will now print your active configuration when using `--debug`
385 - The `general.target` option can now also be set via `-c` flags or a `.gitlint` file
386
387 ## Bugfixes
388 - Various important fixes related to configuration precedence
389 - [#17: Body MinLength is not working properly](https://github.com/jorisroovers/gitlint/issues/17).
390 **Behavior Change**: Gitlint now always applies this rule, even if the body has just a single line of content.
391 Also, gitlint now counts the body-length for the entire body, not just the length of the first line.
392
393 ## Development
394 - Pylint compliance for all supported python versions
395 - Updated dependencies to latest versions
396 - Various `run_tests.sh` improvements for developer convenience
397
398 # v0.7.1 (2016-06-18)
399 ## Bugfixes
400
401 - **Behavior Change**: gitlint no longer prints the file path by default when using a `.gitlint` file. The path
402 will still be printed when using the new `--debug` flag. Special thanks to [Slipcon](https://github.com/slipcon)
403 for submitting this.
404 - Gitlint now prints a correct violation message for the `title-match-regex` rule. Special thanks to
405 [Slipcon](https://github.com/slipcon) for submitting this.
406 - Gitlint is now better at parsing commit messages cross-platform by taking platform specific line endings into account
407 - Minor documentation improvements
408
409 # v0.7.0 (2016-04-20)
410 This release contains mostly bugfix and internal code improvements. Special thanks to
411 [William Turell](https://github.com/wturrell) and [Joe Grund](https://github.com/jgrund) for bug reports and pull
412 requests.
413
414 ## General
415 - Python 2.6 support
416 - **Behavior change**: merge commits are now ignored by default. The rationale is that the original commits
417 should already be linted and that many merge commits don't pass gitlint checks by default
418 (e.g. exceeding title length or empty body is very common). This behavior can be overwritten by setting the
419 general option `ignore-merge-commit=false`.
420
421 ## Features
422 - commit-msg hooks improvements: The new commit-msg hook now allows you to edit your message if it contains violations,
423 prints the commit message on aborting and is more compatible with GUI-based git clients such as SourceTree.
424 *You will need to uninstall and reinstall the commit-msg hook for these latest features*.
425
426 ## Bugfixes
427 - [#7: Hook compatibility with SourceTree](https://github.com/jorisroovers/gitlint/issues/7)
428 - [#8: Illegal option -e](https://github.com/jorisroovers/gitlint/issues/8)
429 - [#9: print full commit msg to stdout if aborted](https://github.com/jorisroovers/gitlint/issues/9)
430 - [#11 merge commit titles exceeding the max title length by default](https://github.com/jorisroovers/gitlint/issues/11)
431 - Better error handling of invalid general options
432
433 ## Development
434 - internal refactoring to extract more info from git. This will allow for more complex rules in the future.
435 - initial set of integration tests. Test gitlint end-to-end after it is installed.
436 - pylint compliance for python 2.7
437
438 # v0.6.1 (2015-11-22)
439
440 ## Bugfixes
441
442 - `install-hook` and `generate-config` commands not working when gitlint is installed from pypi.
443
444 # v0.6.0 (2015-11-22)
445
446 ## General
447 - Python 3 (3.3+) support!
448 - All documentation is now hosted on [http://jorisroovers.github.io/gitlint/]()
449 - **Breaking change**: exit code behavior has changed. More details in the
450 [Exit codes section of the documentation](http://jorisroovers.github.io/gitlint/#exit-codes).
451 - **Breaking change**: `--install-hook` and `--uninstall-hook` have been renamed to `install-hook` and
452 `uninstall-hook` respectively to better express that they are commands instead of options.
453
454 ## Features
455 - New `generate-config` command generates a sample gitlint config file
456 - New `--target` flag allows users to lint different directories than the current working directory
457 - Better error handling when gitlint is executed in a directory that is not a git repository or
458 when git is not installed.
459 - The git commit message hook now uses pretty colored output
460
461 ## Bugfixes
462 - `--config` option no longer accepts directories as value
463
464 ## Development
465 - Unit tests are now ran using py.test
466
467 # v0.5.0 (2015-10-04)
468
469 ## Features
470
471 - Uninstall previously installed gitlint git commit hooks using: `gitlint --uninstall-hook`
472 - Ignore rules on a per commit basis by adding e.g.: `gitlint-ignore: T1, body-hard-tab` to your git commit message.
473 Use `gitlint-ignore: all` to disable gitlint all together for a specific commit.
474 - `body-is-missing` will now automatically be disabled for merge commits (use the `ignore-merge-commit: false`
475 option to disable this behavior)
476 - Violations are now sorted by line number first and then by rule id (previously the order of violations on the
477 same line was arbitrary).
478
479 ## Rules
480 - New Rule: `title-match-regex`. Details can be found in the
481 [Rules section of the documentation](http://jorisroovers.github.io/gitlint/rules/).
482
483 # v0.4.1 (2015-09-19)
484
485 ## Bugfixes
486 - Added missing comma to setup.py which prevented pypi upload
487
488 # v0.4.0 (2015-09-19)
489
490 ## General
491 - gitlint is now also released as a [python wheel](http://pythonwheels.com/) on pypi.
492
493 ## Features
494 - The git `commit-msg` hook now allows you to keep or discard the commit when it fails gitlint validation
495
496 ## Rules
497
498 - New rules: `body-is-missing`, `body-min-length`, `title-leading-whitespace`,
499 `body-changed-file-mention`. Details can be found in the
500 [Rules section of the documentation](http://jorisroovers.github.io/gitlint/rules/).
501
502 ## Development
503 - Internal: rule classes now have access to a gitcontext containing body the commit message and the files changed in the
504 last commit.
505
506 # v0.3.0 (2015-09-11)
507 ## Features
508 - gitlint violations are now printed to the stderr instead of stdout
509 - gitlint now ignores commented out lines (i.e. starting with #) in your commit messages
510 - Experimental: git commit-msg hook support
511
512 ## Rules
513 - `title-must-not-contain-word` now has a `words` option that can be used to specify which words should not
514 occur in the title
515
516 ## Bugfixes
517 - Various minor bugfixes
518
519 ## Development
520 - Under-the-hood: better test coverage :-)
521
522 # v0.2.0 (2015-09-10)
523
524 ## Features
525 - Rules can now have their behavior configured through options.
526 For example, the `title-max-length` rule now has a `line-length` option.
527
528 ## Development
529 - The codebase now has a basic level of unit test coverage, increasing overall quality assurance
530
531 # v0.1.1 (2015-09-08)
532
533 ## Bugfixes
534 - Added missing `sh` dependency
535
536 # v0.1.0 (2015-09-08)
537
538 ## General
539 - Initial gitlint release
540 - Initial set of rules: title-max-length, title-trailing-whitespace, title-trailing-punctuation , title-hard-tab,
541 title-must-not-contain-word, body-max-line-length, body-trailing-whitespace, body-hard-tab
542 - General gitlint configuration through a `gitlint` file
543 - Silent and verbose mode
544 - Vagrantfile for easy development
545 - gitlint is available on [pypi](https://pypi.python.org/pypi/gitlint)