Mercurial > hg
comparison mercurial/help/patterns.txt @ 20290:50db996bccaf
doc: add description about pattern matching against directories
Before this patch, there is no explicit description about pattern
matching against directories, even though users may understand it from
"plain examples" in "hg help patterns".
This patch adds description about pattern matching against
directories.
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Fri, 17 Jan 2014 23:55:11 +0900 |
parents | 170fc0949fb6 |
children | 45f23b1ff345 |
comparison
equal
deleted
inserted
replaced
20289:96be25f1da45 | 20290:50db996bccaf |
---|---|
27 To read name patterns from a file, use ``listfile:`` or ``listfile0:``. | 27 To read name patterns from a file, use ``listfile:`` or ``listfile0:``. |
28 The latter expects null delimited patterns while the former expects line | 28 The latter expects null delimited patterns while the former expects line |
29 feeds. Each string read from the file is itself treated as a file | 29 feeds. Each string read from the file is itself treated as a file |
30 pattern. | 30 pattern. |
31 | 31 |
32 All patterns, except for ``glob:`` specified in command line (not for | |
33 ``-I`` or ``-X`` options) or ``.hgignore`` file, can match also | |
34 against directories: files under matched directories are treated as | |
35 matched. | |
36 | |
32 Plain examples:: | 37 Plain examples:: |
33 | 38 |
34 path:foo/bar a name bar in a directory named foo in the root | 39 path:foo/bar a name bar in a directory named foo in the root |
35 of the repository | 40 of the repository |
36 path:path:name a file or directory named "path:name" | 41 path:path:name a file or directory named "path:name" |