Skip to content

Commit b582c16

Browse files
committed
Merge branch 'dl/ignore-docs'
Doc update. * dl/ignore-docs: docs: move core.excludesFile from git-add to gitignore git-clean.txt: clarify ignore pattern files
2 parents 081b08c + af91b02 commit b582c16

File tree

3 files changed

+13
-15
lines changed

3 files changed

+13
-15
lines changed

Documentation/git-add.txt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -193,15 +193,6 @@ for "git add --no-all <pathspec>...", i.e. ignored removed files.
193193
for command-line options).
194194

195195

196-
CONFIGURATION
197-
-------------
198-
199-
The optional configuration variable `core.excludesFile` indicates a path to a
200-
file containing patterns of file names to exclude from git-add, similar to
201-
$GIT_DIR/info/exclude. Patterns in the exclude file are used in addition to
202-
those in info/exclude. See linkgit:gitignore[5].
203-
204-
205196
EXAMPLES
206197
--------
207198

Documentation/git-clean.txt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,13 @@ OPTIONS
5555

5656
-e <pattern>::
5757
--exclude=<pattern>::
58-
In addition to those found in .gitignore (per directory) and
59-
$GIT_DIR/info/exclude, also consider these patterns to be in the
60-
set of the ignore rules in effect.
58+
Use the given exclude pattern in addition to the standard ignore rules
59+
(see linkgit:gitignore[5]).
6160

6261
-x::
63-
Don't use the standard ignore rules read from .gitignore (per
64-
directory) and $GIT_DIR/info/exclude, but do still use the ignore
65-
rules given with `-e` options. This allows removing all untracked
62+
Don't use the standard ignore rules (see linkgit:gitignore[5]), but
63+
still use the ignore rules given with `-e` options from the command
64+
line. This allows removing all untracked
6665
files, including build products. This can be used (possibly in
6766
conjunction with 'git reset') to create a pristine
6867
working directory to test a clean build.

Documentation/gitignore.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,14 @@ full pathname may have special meaning:
132132
- Other consecutive asterisks are considered regular asterisks and
133133
will match according to the previous rules.
134134

135+
CONFIGURATION
136+
-------------
137+
138+
The optional configuration variable `core.excludesFile` indicates a path to a
139+
file containing patterns of file names to exclude, similar to
140+
`$GIT_DIR/info/exclude`. Patterns in the exclude file are used in addition to
141+
those in `$GIT_DIR/info/exclude`.
142+
135143
NOTES
136144
-----
137145

0 commit comments

Comments
 (0)