diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2011-10-01 20:49:36 +0000 |
---|---|---|
committer | Lorry <lorry@roadtrain.codethink.co.uk> | 2012-09-27 13:27:51 +0000 |
commit | 921ced43c48c1d170452a7b251b94cc96ec8dd44 (patch) | |
tree | 3c4a89176ea67fe4c7bf7b375488361a823c95fa /mercurial/help/hgignore.txt | |
parent | 9039c805b0a7e36220101323f82735f08a104b37 (diff) | |
download | mercurial-tarball-master.tar.gz |
Imported from /srv/lorry/lorry-area/mercurial-tarball/mercurial-1.9.3.tar.gz.HEADmercurial-1.9.3master
Diffstat (limited to 'mercurial/help/hgignore.txt')
-rw-r--r-- | mercurial/help/hgignore.txt | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/mercurial/help/hgignore.txt b/mercurial/help/hgignore.txt index 3f82177..538f4b5 100644 --- a/mercurial/help/hgignore.txt +++ b/mercurial/help/hgignore.txt @@ -1,12 +1,12 @@ Synopsis -======== +-------- The Mercurial system uses a file called ``.hgignore`` in the root directory of a repository to control its behavior when it searches for files that it is not currently tracking. Description -=========== +----------- The working directory of a Mercurial repository will often contain files that should not be tracked by Mercurial. These include backup @@ -33,13 +33,8 @@ To control Mercurial's handling of files that it manages, many commands support the ``-I`` and ``-X`` options; see :hg:`help <command>` and :hg:`help patterns` for details. -Files that are already tracked are not affected by .hgignore, even -if they appear in .hgignore. An untracked file X can be explicitly -added with :hg:`add X`, even if X would be excluded by a pattern -in .hgignore. - Syntax -====== +------ An ignore file is a plain text file consisting of a list of patterns, with one pattern per line. Empty lines are skipped. The ``#`` @@ -68,12 +63,8 @@ the form ``*.c`` will match a file ending in ``.c`` in any directory, and a regexp pattern of the form ``\.c$`` will do the same. To root a regexp pattern, start it with ``^``. -.. note:: - Patterns specified in other than ``.hgignore`` are always rooted. - Please see :hg:`help patterns` for details. - Example -======= +------- Here is an example ignore file. :: |