##// END OF EJS Templates
hgignore.5: remove extra quotes...
Martin Geisler -
r8780:73728f5f default
parent child Browse files
Show More
@@ -1,92 +1,92 b''
1 1 HGIGNORE(5)
2 2 ===========
3 3 Vadim Gelfer <vadim.gelfer@gmail.com>
4 4 :man source: Mercurial
5 5 :man manual: Mercurial Manual
6 6
7 7 NAME
8 8 ----
9 9 hgignore - syntax for Mercurial ignore files
10 10
11 11 SYNOPSIS
12 12 --------
13 13
14 14 The Mercurial system uses a file called `.hgignore` in the root
15 15 directory of a repository to control its behavior when it finds files
16 16 that it is not currently managing.
17 17
18 18 DESCRIPTION
19 19 -----------
20 20
21 21 Mercurial ignores every unmanaged file that matches any pattern in an
22 22 ignore file. The patterns in an ignore file do not apply to files
23 23 managed by Mercurial. To control Mercurial's handling of files that it
24 24 manages, see the hg(1) man page. Look for the "-I" and "-X" options.
25 25
26 26 In addition, a Mercurial configuration file can point to a set of
27 27 per-user or global ignore files. See the hgrc(5) man page for details
28 28 of how to configure these files. Look for the "ignore" entry in the
29 29 "ui" section.
30 30
31 31 SYNTAX
32 32 ------
33 33
34 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
36 is treated as a comment character, and the "``\``" character is treated as
35 with one pattern per line. Empty lines are skipped. The "`#`" character
36 is treated as a comment character, and the "`\`" character is treated as
37 37 an escape character.
38 38
39 39 Mercurial supports several pattern syntaxes. The default syntax used
40 40 is Python/Perl-style regular expressions.
41 41
42 42 To change the syntax used, use a line of the following form:
43 43
44 44 syntax: NAME
45 45
46 46 where NAME is one of the following:
47 47
48 48 regexp::
49 49 Regular expression, Python/Perl syntax.
50 50 glob::
51 51 Shell-style glob.
52 52
53 53 The chosen syntax stays in effect when parsing all patterns that
54 54 follow, until another syntax is selected.
55 55
56 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
58 a regexp pattern of the form "``\.c$``" will do the same. To root a regexp
59 pattern, start it with "``^``".
57 the form "`*.c`" will match a file ending in "`.c`" in any directory, and
58 a regexp pattern of the form "`\.c$`" will do the same. To root a regexp
59 pattern, start it with "`^`".
60 60
61 61 EXAMPLE
62 62 -------
63 63
64 64 Here is an example ignore file.
65 65
66 66 # use glob syntax.
67 67 syntax: glob
68 68
69 69 *.elc
70 70 *.pyc
71 71 *~
72 72
73 73 # switch to regexp syntax.
74 74 syntax: regexp
75 75 ^\.pc/
76 76
77 77 AUTHOR
78 78 ------
79 79 Vadim Gelfer <vadim.gelfer@gmail.com>
80 80
81 81 Mercurial was written by Matt Mackall <mpm@selenic.com>.
82 82
83 83 SEE ALSO
84 84 --------
85 85 hg(1), hgrc(5)
86 86
87 87 COPYING
88 88 -------
89 89 This manual page is copyright 2006 Vadim Gelfer.
90 90 Mercurial is copyright 2005-2009 Matt Mackall.
91 91 Free use of this software is granted under the terms of the GNU General
92 92 Public License (GPL).
General Comments 0
You need to be logged in to leave comments. Login now