Skip to content

Commit af91b02

Browse files
Denton-Lgitster
authored andcommitted
docs: move core.excludesFile from git-add to gitignore
A section in "git add" documentation mentions core.excludesFile and explains how it works, but this is not specific to the command. Move this description to gitignore.txt to be more generic. Signed-off-by: Denton Liu <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 407e768 commit af91b02

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
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/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)