diff options
author | Junio C Hamano <junio@hera.kernel.org> | 2007-07-22 09:33:42 +0000 |
---|---|---|
committer | Junio C Hamano <junio@hera.kernel.org> | 2007-07-22 09:33:42 +0000 |
commit | de9879a91fd7d4d123a303b4bcdc918f43ca3a62 (patch) | |
tree | 68cb399f1760d4a54ae9ff1f367fea8b6bed9453 /gitignore.html | |
parent | f6002a9d88be66b5d7ac79bf312feb0b622791ca (diff) | |
download | git-htmldocs-de9879a91fd7d4d123a303b4bcdc918f43ca3a62.tar.gz |
Autogenerated HTML docs for v1.5.3-rc2-29-gc4640
Diffstat (limited to 'gitignore.html')
-rw-r--r-- | gitignore.html | 33 |
1 files changed, 21 insertions, 12 deletions
diff --git a/gitignore.html b/gitignore.html index 2409b7ac4..33da1ff3b 100644 --- a/gitignore.html +++ b/gitignore.html @@ -281,30 +281,38 @@ git should ignore. Each line in a <tt>gitignore</tt> file specifies a pattern.</p>
<p>When deciding whether to ignore a path, git normally checks
<tt>gitignore</tt> patterns from multiple sources, with the following
-order of precedence:</p>
+order of precedence, from highest to lowest (within one level of
+precedence, the last matching pattern decides the outcome):</p>
<ul>
<li>
<p>
-Patterns read from the file specified by the configuration
- variable <em>core.excludesfile</em>.
-</p>
-</li>
-<li>
-<p>
-Patterns read from <tt>$GIT_DIR/info/exclude</tt>.
+Patterns read from the command line for those commands that support
+ them.
</p>
</li>
<li>
<p>
Patterns read from a <tt>.gitignore</tt> file in the same directory
- as the path, or in any parent directory, ordered from the
- deepest such file to a file in the root of the repository.
+ as the path, or in any parent directory, with patterns in the
+ higher level files (up to the root) being overriden by those in
+ lower level files down to the directory containing the file.
These patterns match relative to the location of the
<tt>.gitignore</tt> file. A project normally includes such
<tt>.gitignore</tt> files in its repository, containing patterns for
files generated as part of the project build.
</p>
</li>
+<li>
+<p>
+Patterns read from <tt>$GIT_DIR/info/exclude</tt>.
+</p>
+</li>
+<li>
+<p>
+Patterns read from the file specified by the configuration
+ variable <em>core.excludesfile</em>.
+</p>
+</li>
</ul>
<p>The underlying git plumbing tools, such as
<a href="git-ls-files.html">git-ls-files(1)</a> and <a href="git-read-tree.html">git-read-tree(1)</a>, read
@@ -329,7 +337,8 @@ A line starting with # serves as a comment. <p>
An optional prefix <em>!</em> which negates the pattern; any
matching file excluded by a previous pattern will become
- included again.
+ included again. If a negated pattern matches, this will
+ override lower precedence patterns sources.
</p>
</li>
<li>
@@ -403,7 +412,7 @@ Frank Lichtenheld, and the git-list <git@vger.kernel.org>.</p> </div>
<div id="footer">
<div id="footer-text">
-Last updated 19-Jul-2007 02:10:00 UTC
+Last updated 22-Jul-2007 09:33:20 UTC
</div>
</div>
</body>
|