aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/gitignore.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-03-18 11:05:23 -0700
committerJunio C Hamano <gitster@pobox.com>2016-03-18 11:05:23 -0700
commit8ad3cb08690bdf9a340e47ed4fdb67cbacd1edf2 (patch)
treec31372599c6e0f0b141df9be21632585de695746 /Documentation/gitignore.txt
parent44915db9358936fbad21221fed3abf86166696fd (diff)
downloadgit-8ad3cb08690bdf9a340e47ed4fdb67cbacd1edf2.tar.gz
Revert "Merge branch 'jc/exclusion-doc'"
This reverts commit e80aae51f2be908e37fca47ea0dff6d7861c8497, reversing changes made to 68846a92eafa6b2bfae778d0a656443a9fa61e59. We will be postponing nd/exclusion-regression-fix topic to later cycle.
Diffstat (limited to 'Documentation/gitignore.txt')
-rw-r--r--Documentation/gitignore.txt38
1 files changed, 1 insertions, 37 deletions
diff --git a/Documentation/gitignore.txt b/Documentation/gitignore.txt
index 91d1ce2a89..3ded6fdc99 100644
--- a/Documentation/gitignore.txt
+++ b/Documentation/gitignore.txt
@@ -148,43 +148,7 @@ excluded, the following conditions must be met:
be in the same .gitignore file.
- The directory part in the re-include rules must be literal (i.e. no
- wildcards and has to start with a `/`).
-
-A re-inclusion of a directory makes all files in the directory
-unignored. For example, suppose you have files `.gitignore`,
-`dir/file1`, `dir/file2`, and `dir/file3`, and have the following in
-your `.gitignore`:
-
-----------------
-# .gitignore is not mentioned in .gitignore
-*
-!/dir
-# dir/file1 is not mentioned in .gitignore
-dir/file2
-!dir/file3
-----------------
-
-Then:
-
- - `.gitignore` gets ignored, because it matches the `*` at the top
- level;
-
- - `dir/file1` does not get ignored, because `/dir` marks everything
- underneath `dir/` directory to be 're-included' unless otherwise
- specified;
-
- - `dir/file2` gets ignored, because `dir/file2` matches it.
-
- - `dir/file3` does not get ignored, because `!dir/file3` matches it.
- Note that the entry `!dir/file3` is redundant because everything
- underneath `dir/` is marked to be 're-included' already.
-
-Some earlier versions of Git treated `!/dir` above differently in
-that it did not cause the paths under it unignored (but merely told
-Git that patterns that begin with dir/ should not be ignored), but
-this has been corrected to be consistent with `/dir` that says "the
-directory `dir/` and everything below are ignored."
-
+ wildcards)
EXAMPLES
--------