[PATCH] help: correct description of "glob:foo/*" matching
Martin von Zweigbergk
martinvonz at google.com
Mon Jun 12 22:13:41 UTC 2017
# HG changeset patch
# User Martin von Zweigbergk <martinvonz at google.com>
# 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
More information about the Mercurial-devel
mailing list