From f0b5288e534549dbd2dd15ee070cd5fdef5912a3 Mon Sep 17 00:00:00 2001 From: Andrew Roslik Date: Tue, 30 Aug 2016 15:47:48 +0300 Subject: [PATCH] Implemented #116: Rename "commithook files:allow-default" to "commithook files allow-default" - Updated docs. --- doc/protect-code.md | 4 ++-- src/config/validators/FileFilter.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/protect-code.md b/doc/protect-code.md index 72a0f22..2207129 100644 --- a/doc/protect-code.md +++ b/doc/protect-code.md @@ -23,13 +23,13 @@ This command should be used to allow committing within protected path. ### Allowed be default There is an option which allows to commit any file. -`commithook files:allow-default` +`commithook files allow-default` In this case "allowed" list will be ended rule and will have highest priority. You switch it to OFF: -`commithook files:allow-default 0` +`commithook files allow-default 0` In this case "protected" list will be ended rule and will have highest priority. It will pass a commit only if "allowed" list covers a path. diff --git a/src/config/validators/FileFilter.xml b/src/config/validators/FileFilter.xml index e966836..33d8207 100644 --- a/src/config/validators/FileFilter.xml +++ b/src/config/validators/FileFilter.xml @@ -11,7 +11,7 @@ validators/FileFilter/allowed_by_default - This command can define configuration for allowing to commit files by default. + Set allowing to commit files by default. project