Jig is a command line utility and framework for running checks before changes are committed to a Git repository. It extends the standard Git pre-commit hook with a plugin system that makes it easier to examine staged files and report potential problems before they become part of the repository history.
The software provides a foundation for custom validation rules rather than prescribing a fixed collection of checks. Developers can select existing plugins or create their own to enforce project-specific standards.
Jig executes its checks automatically when a commit is attempted, but plugins can also be run manually. Results are presented with different severity levels, allowing developers to distinguish informational messages from warnings and problems serious enough to prevent a commit.
This is free and open source software.
Key Features
- Runs configurable plugins automatically through the Git pre-commit hook.
- Examines files staged in the Git index before they are committed.
- Supports plugins for checking whitespace, coding standards and common programming errors.
- Extensible plugin architecture allowing developers to implement custom validation rules.
- Plugins can be developed in different scripting languages.
- Installs plugins from Git repositories or local directories.
- Supports plugin collections and installation lists for managing multiple checks.
- Provides commands to list, add, update and remove installed plugins.
- Configurable plugin settings for adapting checks to individual project requirements.
- Runs all installed plugins or a selected plugin manually without creating a commit.
- Supports checking a specified range of Git revisions using the report command.
- Reports findings using informational, warning and stop severity levels.
- Allows users to cancel a commit when warning messages are reported.
- Provides facilities for creating new plugins and running their automated tests.
- Offers a sticky mode that automatically prepares newly cloned repositories for Jig.
Website: github.com/robmadole/jig
Support:
Developer: Rob Madole
License: BSD 2-Clause ‘Simplified’ License
Jig is written in Python. Learn Python with our recommended free books and free tutorials.
Related Software
| Git Hook Managers | |
|---|---|
| lefthook | Git hooks manager for Node.js, Ruby, Python and more |
| husky | Git hooks made easy |
| pre-commit | Manage and maintain multi-language pre-commit hooks |
| GrumPHP | Automates PHP code quality checks through configurable Git hooks |
| prek | Reimagined version of pre-commit |
| overcommit | Manage and configure Git hooks |
| hk | Git hooks manager and project linting tool focusing on performance |
| simple-git-hooks | Simple git hooks manager for small projects |
| CaptainHook | Flexible Git hook manager |
| Githooks | Platform-independent hooks manager |
| git-hooks | Rewritten from icefox/git-hooks, with extra features |
| Autohook | Runs and organises Git hook scripts using a single Bash script |
| Jig | Git pre-commit hook on steroids |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.