##// 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 HGIGNORE(5)
1 HGIGNORE(5)
2 ===========
2 ===========
3 Vadim Gelfer <vadim.gelfer@gmail.com>
3 Vadim Gelfer <vadim.gelfer@gmail.com>
4 :man source: Mercurial
4 :man source: Mercurial
5 :man manual: Mercurial Manual
5 :man manual: Mercurial Manual
6
6
7 NAME
7 NAME
8 ----
8 ----
9 hgignore - syntax for Mercurial ignore files
9 hgignore - syntax for Mercurial ignore files
10
10
11 SYNOPSIS
11 SYNOPSIS
12 --------
12 --------
13
13
14 The Mercurial system uses a file called `.hgignore` in the root
14 The Mercurial system uses a file called `.hgignore` in the root
15 directory of a repository to control its behavior when it finds files
15 directory of a repository to control its behavior when it finds files
16 that it is not currently managing.
16 that it is not currently managing.
17
17
18 DESCRIPTION
18 DESCRIPTION
19 -----------
19 -----------
20
20
21 Mercurial ignores every unmanaged file that matches any pattern in an
21 Mercurial ignores every unmanaged file that matches any pattern in an
22 ignore file. The patterns in an ignore file do not apply to files
22 ignore file. The patterns in an ignore file do not apply to files
23 managed by Mercurial. To control Mercurial's handling of files that it
23 managed by Mercurial. To control Mercurial's handling of files that it
24 manages, see the hg(1) man page. Look for the "-I" and "-X" options.
24 manages, see the hg(1) man page. Look for the "-I" and "-X" options.
25
25
26 In addition, a Mercurial configuration file can point to a set of
26 In addition, a Mercurial configuration file can point to a set of
27 per-user or global ignore files. See the hgrc(5) man page for details
27 per-user or global ignore files. See the hgrc(5) man page for details
28 of how to configure these files. Look for the "ignore" entry in the
28 of how to configure these files. Look for the "ignore" entry in the
29 "ui" section.
29 "ui" section.
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 "`#`" character
36 is treated as a comment character, and the "``\``" character is treated as
36 is treated as a comment character, and the "`\`" character is treated as
37 an escape character.
37 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:
43
43
44 syntax: NAME
44 syntax: NAME
45
45
46 where NAME is one of the following:
46 where NAME is one of the following:
47
47
48 regexp::
48 regexp::
49 Regular expression, Python/Perl syntax.
49 Regular expression, Python/Perl syntax.
50 glob::
50 glob::
51 Shell-style glob.
51 Shell-style glob.
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, and
58 a regexp pattern of the form "``\.c$``" will do the same. To root a regexp
58 a regexp pattern of the form "`\.c$`" will do the same. To root a regexp
59 pattern, start it with "``^``".
59 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.
65
65
66 # use glob syntax.
66 # use glob syntax.
67 syntax: glob
67 syntax: glob
68
68
69 *.elc
69 *.elc
70 *.pyc
70 *.pyc
71 *~
71 *~
72
72
73 # switch to regexp syntax.
73 # switch to regexp syntax.
74 syntax: regexp
74 syntax: regexp
75 ^\.pc/
75 ^\.pc/
76
76
77 AUTHOR
77 AUTHOR
78 ------
78 ------
79 Vadim Gelfer <vadim.gelfer@gmail.com>
79 Vadim Gelfer <vadim.gelfer@gmail.com>
80
80
81 Mercurial was written by Matt Mackall <mpm@selenic.com>.
81 Mercurial was written by Matt Mackall <mpm@selenic.com>.
82
82
83 SEE ALSO
83 SEE ALSO
84 --------
84 --------
85 hg(1), hgrc(5)
85 hg(1), hgrc(5)
86
86
87 COPYING
87 COPYING
88 -------
88 -------
89 This manual page is copyright 2006 Vadim Gelfer.
89 This manual page is copyright 2006 Vadim Gelfer.
90 Mercurial is copyright 2005-2009 Matt Mackall.
90 Mercurial is copyright 2005-2009 Matt Mackall.
91 Free use of this software is granted under the terms of the GNU General
91 Free use of this software is granted under the terms of the GNU General
92 Public License (GPL).
92 Public License (GPL).
General Comments 0
You need to be logged in to leave comments. Login now