git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v3 2/2] Docs: move core.excludesFile from git-add to gitignore

From
Denton Liu <liu.denton@gmail.com>
Date
Mar 7, 2019, 08:25 UTC
Message-ID
<f1bc7d5eb1ad15427f6d14c19c90595d09acabe5.1551947030.git.liu.denton@gmail.com>
In-Reply-To
<cover.1551947030.git.liu.denton@gmail.com>
There was a section on configuration mentioning core.excludesFile in
git-add.txt. However, the core.excludesFile config variable is not
exclusive to git-add. Move this description to gitignore.txt to be more
generic.
---
 Documentation/git-add.txt   | 9 ---------
 Documentation/gitignore.txt | 8 ++++++++
 2 files changed, 8 insertions(+), 9 deletions(-)
diff --git a/Documentation/git-add.txt b/Documentation/git-add.txt
index 37bcab94d5..8b0e4c7fa8 100644
--- a/Documentation/git-add.txt
+++ b/Documentation/git-add.txt
@@ -193,15 +193,6 @@ for "git add --no-all <pathspec>...", i.e. ignored removed files.
 	for command-line options).
 
 
-CONFIGURATION
--------------
-
-The optional configuration variable `core.excludesFile` indicates a path to a
-file containing patterns of file names to exclude from git-add, similar to
-$GIT_DIR/info/exclude.  Patterns in the exclude file are used in addition to
-those in info/exclude.  See linkgit:gitignore[5].
-
-
 EXAMPLES
 --------
 
diff --git a/Documentation/gitignore.txt b/Documentation/gitignore.txt
index 1c94f08ff4..b5bc9dbff0 100644
--- a/Documentation/gitignore.txt
+++ b/Documentation/gitignore.txt
@@ -132,6 +132,14 @@ full pathname may have special meaning:
  - Other consecutive asterisks are considered regular asterisks and
    will match according to the previous rules.
 
+CONFIGURATION
+-------------
+
+The optional configuration variable `core.excludesFile` indicates a path to a
+file containing patterns of file names to exclude, similar to
+`$GIT_DIR/info/exclude`.  Patterns in the exclude file are used in addition to
+those in `$GIT_DIR/info/exclude`.
+
 NOTES
 -----
 
-- 
2.21.0.368.gbf248417d7
Previous: Denton LiuNext: Junio C Hamano
Message 11 of 13 in “update git-clean.txt”
  1. 0/1 update git-clean.txtDenton Liu, Mar 6, 2019
  2. 1/1 git-clean.txt: specify core.excludesFile variable is usedDenton Liu, Mar 6, 2019
  3. Martin ÅgrenMar 6, 2019
  4. Junio C HamanoMar 7, 2019
  5. 0/1 make git-clean.txt more preciseDenton Liu, Mar 7, 2019
  6. 1/1 git-clean.txt: clarify ignore pattern filesDenton Liu, Mar 7, 2019
  7. Junio C HamanoMar 7, 2019
  8. Martin ÅgrenMar 7, 2019
  9. Junio C HamanoMar 7, 2019
  10. 0/2 consolidate core.excludesFile docsDenton Liu, Mar 7, 2019
  11. 2/2 Docs: move core.excludesFile from git-add to gitignoreDenton Liu, Mar 7, 2019
  12. Junio C HamanoMar 8, 2019
  13. 1/2 git-clean.txt: clarify ignore pattern filesDenton Liu, Mar 7, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.