2016-09-19 21:41:01 +00:00
|
|
|
=====
|
|
|
|
Usage
|
|
|
|
=====
|
2016-10-04 17:16:17 +00:00
|
|
|
|
2016-09-19 21:41:01 +00:00
|
|
|
Command Line
|
|
|
|
------------
|
|
|
|
|
|
|
|
.. contents::
|
|
|
|
|
|
|
|
git lint [options] [filenames]
|
|
|
|
|
|
|
|
Options
|
|
|
|
-------
|
2016-09-28 17:01:02 +00:00
|
|
|
|
2016-10-04 17:16:17 +00:00
|
|
|
.. include:: arguments.rst
|
2016-09-19 21:41:01 +00:00
|
|
|
|
2016-09-20 21:59:20 +00:00
|
|
|
As a pre-commit hook:
|
|
|
|
---------------------
|
2016-09-19 21:41:01 +00:00
|
|
|
|
2016-10-05 20:11:49 +00:00
|
|
|
There's a file, pre-commit, in the /bin directory with the project. (Or you can download
|
|
|
|
it from the github repository.) Install it in you .git/hooks/pre-commit file, and
|
|
|
|
chmod +x .git/hooks/pre-commit.
|
2016-09-22 22:50:01 +00:00
|
|
|
|
2016-10-05 20:11:49 +00:00
|
|
|
The pre-commit hook is *experimental*. Please be careful with it.
|