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 <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Denton Liu committed Mar 7, 2019 at 00:25 UTC af91b0230ca9fb204aac04bd713ca0f420c8f8b1
2 files changed +8 -9
Documentation/git-add.txt
-9
@@ -193,15 +193,6 @@ for "git add --no-all <pathspec>...", i.e. ignored removed files.
193 for command-line options).
194
195
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 -
196 EXAMPLES
197 --------
198
Documentation/gitignore.txt
+8
@@ -132,6 +132,14 @@ full pathname may have special meaning:
132 - Other consecutive asterisks are considered regular asterisks and
133 will match according to the previous rules.
134
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 +
143 NOTES
144 -----
145