... | ... |
@@ -2,7 +2,13 @@ |
2 | 2 |
|
3 | 3 |
A [Git hook][githooks] that prevents you from committing unintended content. |
4 | 4 |
|
5 |
+`git-hook-nocommit` is intended to be used as a [pre-commit][] hook and will |
|
6 |
+refuse to commit any files with content that matches (case insensitively) the |
|
7 |
+extended regex `$GIT_HOOK_NOCOMMIT_REGEX` (or `nocommit|nocheckin` if it is |
|
8 |
+empty) unless `$GIT_HOOK_NOCOMMIT_DISABLE` is non-empty. |
|
9 |
+ |
|
5 | 10 |
[githooks]: https://git-scm.com/docs/githooks |
11 |
+[pre-commit]: https://git-scm.com/docs/githooks#_pre_commit |
|
6 | 12 |
|
7 | 13 |
## License |
8 | 14 |
|
... | ... |
@@ -3,3 +3,9 @@ |
3 | 3 |
A [Git hook][githooks] that prevents you from committing unintended content. |
4 | 4 |
|
5 | 5 |
[githooks]: https://git-scm.com/docs/githooks |
6 |
+ |
|
7 |
+## License |
|
8 |
+ |
|
9 |
+Licensed under the [ISC license][], see the [`LICENSE`](LICENSE) file. |
|
10 |
+ |
|
11 |
+[ISC license]: https://en.wikipedia.org/wiki/ISC_license |