doc/hgignore.5.txt
changeset 8782 d19ab9a56bf4
parent 8780 73728f5f69ab
child 9127 35c3f94233a0
equal deleted inserted replaced
8781:385a2d94885e 8782:d19ab9a56bf4
    30 
    30 
    31 SYNTAX
    31 SYNTAX
    32 ------
    32 ------
    33 
    33 
    34 An ignore file is a plain text file consisting of a list of patterns,
    34 An ignore file is a plain text file consisting of a list of patterns,
    35 with one pattern per line. Empty lines are skipped. The "`#`" character
    35 with one pattern per line. Empty lines are skipped. The "`#`"
    36 is treated as a comment character, and the "`\`" character is treated as
    36 character is treated as a comment character, and the "`\`" character
    37 an escape character.
    37 is treated as an escape character.
    38 
    38 
    39 Mercurial supports several pattern syntaxes. The default syntax used
    39 Mercurial supports several pattern syntaxes. The default syntax used
    40 is Python/Perl-style regular expressions.
    40 is Python/Perl-style regular expressions.
    41 
    41 
    42 To change the syntax used, use a line of the following form:
    42 To change the syntax used, use a line of the following form:
    52 
    52 
    53 The chosen syntax stays in effect when parsing all patterns that
    53 The chosen syntax stays in effect when parsing all patterns that
    54 follow, until another syntax is selected.
    54 follow, until another syntax is selected.
    55 
    55 
    56 Neither glob nor regexp patterns are rooted. A glob-syntax pattern of
    56 Neither glob nor regexp patterns are rooted. A glob-syntax pattern of
    57 the form "`*.c`" will match a file ending in "`.c`" in any directory, and
    57 the form "`*.c`" will match a file ending in "`.c`" in any directory,
    58 a regexp pattern of the form "`\.c$`" will do the same. To root a regexp
    58 and a regexp pattern of the form "`\.c$`" will do the same. To root a
    59 pattern, start it with "`^`".
    59 regexp pattern, start it with "`^`".
    60 
    60 
    61 EXAMPLE
    61 EXAMPLE
    62 -------
    62 -------
    63 
    63 
    64 Here is an example ignore file.
    64 Here is an example ignore file.