##// END OF EJS Templates
hgignore.5.txt: improved description of matching...
Henri Wiechers -
r9127:35c3f942 default
parent child Browse files
Show More
@@ -12,22 +12,28 b' 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 searches
16 that it is not currently managing.
16 for files that it is not currently tracking.
17
17
18 DESCRIPTION
18 DESCRIPTION
19 -----------
19 -----------
20
20
21 Mercurial ignores every unmanaged file that matches any pattern in an
21 An untracked file is ignored if its path relative to the repository
22 ignore file. The patterns in an ignore file do not apply to files
22 root directory, or any prefix path of that path, is matched against
23 managed by Mercurial. To control Mercurial's handling of files that it
23 any pattern in `.hgignore`.
24 manages, see the hg(1) man page. Look for the "-I" and "-X" options.
25
24
26 In addition, a Mercurial configuration file can point to a set of
25 For example, say we have an an untracked file, `file.c`, at
26 `a/b/file.c` inside our repository. Mercurial will ignore `file.c` if
27 any pattern in `.hgignore` matches `a/b/file.c`, `a/b` or `a`.
28
29 In addition, a Mercurial configuration file can reference a set of
27 per-user or global ignore files. See the hgrc(5) man page for details
30 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
31 of how to configure these files. Look for the "ignore" entry in the
29 "ui" section.
32 "ui" section.
30
33
34 To control Mercurial's handling of files that it manages, see the
35 hg(1) man page. Look for the "-I" and "-X" options.
36
31 SYNTAX
37 SYNTAX
32 ------
38 ------
33
39
General Comments 0
You need to be logged in to leave comments. Login now