Simple git commit style checker
Find a file
2014-04-12 13:09:26 +02:00
commit-check Add -h and -0 command-line options 2014-04-09 00:53:03 +02:00
COPYING Add license information 2014-03-16 13:08:21 +01:00
README.org Remove INSTALL, place everything in README 2014-04-12 13:09:26 +02:00
test-fail-barely.txt Initial commit 2014-03-05 00:17:35 +01:00
test-fail-miserably.txt Initial commit 2014-03-05 00:17:35 +01:00
test-pass.txt Initial commit 2014-03-05 00:17:35 +01:00

commit-check v0.1.0

This is the commit-check project. It is a quick and easy commit style checker that can be used either as a git hook to enforce the style checked by commit-check, or as a syntax checker back-end (like Flycheck).

The file /ryuslash/commit-check/src/commit/03a2fcba7b99f2cd56f105a2818d5fd7d1dff8a1/INSTALL.org contains instructions on how to install commit-check on your system.

The entire code for the project is currently contained in the /ryuslash/commit-check/src/commit/03a2fcba7b99f2cd56f105a2818d5fd7d1dff8a1/commit-check file. The files /ryuslash/commit-check/src/commit/03a2fcba7b99f2cd56f105a2818d5fd7d1dff8a1/test-pass.txt, /ryuslash/commit-check/src/commit/03a2fcba7b99f2cd56f105a2818d5fd7d1dff8a1/test-fail-barely.txt and /ryuslash/commit-check/src/commit/03a2fcba7b99f2cd56f105a2818d5fd7d1dff8a1/test-fail-miserably.txt are used for testing purposes. They contain and explain certain situations that can occur when writing commits that may or may not cause errors to be reported.

This project is licensed under the GNU GPLv3, its terms and conditions can be found in /ryuslash/commit-check/src/commit/03a2fcba7b99f2cd56f105a2818d5fd7d1dff8a1/COPYING.

Installation

commit-check can either be used manually (or as a back-end to some other tool), or as a git commit-msg hook to stop you from committing badly styled commit messages.

For manual use

To get this project up and running make sure you have perl installed and that commit-check is somewhere in your PATH.

As git hook

Place the commit-check executable file in the .git/hooks directory of your project, with the name commit-msg. It doesn't need to be the actual executable, it can also be a (soft) link to the executable, or a script running this program (passing along all arguments).