From patchwork Mon Jun 12 22:13:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: help: correct description of "glob:foo/*" matching From: via Mercurial-devel X-Patchwork-Id: 21349 Message-Id: <0a175f0a4a0f11e8d252.1497305621@martinvonz.svl.corp.google.com> To: mercurial-devel@mercurial-scm.org Date: Mon, 12 Jun 2017 15:13:41 -0700 # HG changeset patch # User Martin von Zweigbergk # Date 1497291861 25200 # Mon Jun 12 11:24:21 2017 -0700 # Node ID 0a175f0a4a0f11e8d252f133fc19f8ba1a0298d3 # Parent 348b491c093401f849ea4c4106b164672efc6bed help: correct description of "glob:foo/*" matching Unlike what the description says, it does not match recursively. Also add an example of "glob:foo/**" (which does match recursively). diff --git a/mercurial/help/patterns.txt b/mercurial/help/patterns.txt --- a/mercurial/help/patterns.txt +++ b/mercurial/help/patterns.txt @@ -58,7 +58,8 @@ *.c any name ending in ".c" in the current directory **.c any name ending in ".c" in any subdirectory of the current directory including itself. - foo/* any file in directory foo plus all its subdirectories, + foo/* any file in directory foo + foo/** any file in directory foo plus all its subdirectories, recursively foo/*.c any name ending in ".c" in the directory foo foo/**.c any name ending in ".c" in any subdirectory of foo