From 2e461dc3b94c98da70ec8e9833943e89aec11d2e Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Mon, 19 Mar 2018 09:03:33 +0100 Subject: Fix and improve hints about regular expression usage --- bin/incremental-git-filterbranch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/incremental-git-filterbranch b/bin/incremental-git-filterbranch index 00aec2c..cf9f871 100755 --- a/bin/incremental-git-filterbranch +++ b/bin/incremental-git-filterbranch @@ -98,7 +98,8 @@ destinationrepository The URL or path to the destination repository. You can prefix branch/tag names in both whitelists and blacklists with 'rx:': in this case a regular expression check will be performed. -For instance: --branch-whitelist 'master rx:release\\/\\d+(\\.\\d+)*' will match 'master' and 'release/1.1' +For instance: --branch-whitelist 'master rx:release\/[0-9]+(\.[0-9]+)*' will match 'master' and 'release/1.1'. +Please remark that these regular expressions should comply the POSIX ERE (Extended Regular Expressions) syntax. " exit 0 } -- cgit v1.2.3