2021-09-03 23:41:14 +01:00
|
|
|
# gitlint
|
|
|
|
|
|
|
|
> Git commit message linter checks your commit messages for style.
|
|
|
|
> More information: <https://jorisroovers.com/gitlint/>.
|
|
|
|
|
|
|
|
- Check the last commit message:
|
|
|
|
|
|
|
|
`gitlint`
|
|
|
|
|
|
|
|
- The range of commits to lint:
|
|
|
|
|
|
|
|
`gitlint --commits {{single_refspec_argument}}`
|
|
|
|
|
2023-05-02 16:16:07 +01:00
|
|
|
- Path to a directory or Python module with extra user-defined rules:
|
2021-09-03 23:41:14 +01:00
|
|
|
|
|
|
|
`gitlint --extra-path {{path/to/directory}}`
|
|
|
|
|
|
|
|
- Start a specific CI job:
|
|
|
|
|
|
|
|
`gitlint --target {{path/to/target_directory}}`
|
|
|
|
|
|
|
|
- Path to a file containing a commit-msg:
|
|
|
|
|
|
|
|
`gitlint --msg-filename {{path/to/filename}}`
|
|
|
|
|
|
|
|
- Read staged commit meta-info from the local repository:
|
|
|
|
|
|
|
|
`gitlint --staged`
|