This package provides a set of tools to ensure a level of quality and productivity adapted to the current state of the art in development.
Run the ./install.sh
command.
By default it configures globally Git
to use the Git Hooks feature.
By using the -t
flag, it configures globally Git
to use the Git Templates feature.
Please note that:
- both Git Hooks and Git Templates features are mutually exclusive.
- already existing
Git
configuration are saved in order to be restored during uninstallation.
Run ./install.sh -u
.
By default the hooks are the same as the ones provided by Git
except for the following ones:
-
commit-msg
: this hook:- ensures that the committed message follows the Conventional Commits specification.
- ensures that the commited message is enhanced by an icon corresponding to its type.
Please refer to the
[commit_type_icons]
section of the config.toml file to see or change icons. - allows a bunch of additional types.
Please refer to the
[commit_types]
section of the cog.toml file to see or change these additional types.
The integration of this feature relies on the git configuration setting core.hooksPath, set globally.
Additional types and icons were grandly inspired by the work of Danny FRITZ (@dannyfritz) and Danny (@its-danny).
For now the templates are the same as the ones provided by Git
except for the hooks which are symlinks to this package hooks.
This is a convenient way to keep them in an up to date state.
The integration of this feature relies on the git configuration setting init.templateDir, set globally.
Please refer to thirdpartylibs.md.
This project is licensed under the terms of the MIT License.