##// END OF EJS Templates
help: add documentation on include: and subinclude:...
Durham Goode -
r25284:7072b91c default
parent child Browse files
Show More
@@ -68,6 +68,10 b' the form ``*.c`` will match a file endin'
68 and a regexp pattern of the form ``\.c$`` will do the same. To root a
68 and a regexp pattern of the form ``\.c$`` will do the same. To root a
69 regexp pattern, start it with ``^``.
69 regexp pattern, start it with ``^``.
70
70
71 Subdirectories can have their own .hgignore settings by adding
72 ``subinclude:path/to/subdir/.hgignore`` to the root ``.hgignore``. See
73 :hg:`help patterns` for details on ``subinclude:`` and ``include:``.
74
71 .. note::
75 .. note::
72
76
73 Patterns specified in other than ``.hgignore`` are always rooted.
77 Patterns specified in other than ``.hgignore`` are always rooted.
@@ -30,6 +30,12 b' The latter expects null delimited patter'
30 feeds. Each string read from the file is itself treated as a file
30 feeds. Each string read from the file is itself treated as a file
31 pattern.
31 pattern.
32
32
33 To read a set of patterns from a file, use ``include:`` or ``subinclude:``.
34 ``include:`` will use all the patterns from the given file and treat them as if
35 they had been passed in manually. ``subinclude:`` will only apply the patterns
36 against files that are under the subinclude file's directory. See :hg:`help
37 hgignore` for details on the format of these files.
38
33 All patterns, except for ``glob:`` specified in command line (not for
39 All patterns, except for ``glob:`` specified in command line (not for
34 ``-I`` or ``-X`` options), can match also against directories: files
40 ``-I`` or ``-X`` options), can match also against directories: files
35 under matched directories are treated as matched.
41 under matched directories are treated as matched.
@@ -60,3 +66,9 b' File examples::'
60 listfile0:list.txt read list from list.txt with null byte delimiters
66 listfile0:list.txt read list from list.txt with null byte delimiters
61
67
62 See also :hg:`help filesets`.
68 See also :hg:`help filesets`.
69
70 Include examples::
71
72 include:path/to/mypatternfile reads patterns to be applied to all paths
73 subinclude:path/to/subignorefile reads patterns specifically for paths in the
74 subdirectory
General Comments 0
You need to be logged in to leave comments. Login now