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

[PATCH] Add notes that some $GIT_DIR/info/ files are not copied by clone, etc.

From
TCToby Corkindale <toby.corkindale@rea-group.com>
Date
Mar 27, 2008, 04:36 UTC
Message-ID
<47EB246A.1030402@rea-group.com>
---
 Documentation/gitattributes.txt |    4 ++++
 Documentation/gitignore.txt     |    3 +++
 2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/Documentation/gitattributes.txt b/Documentation/gitattributes.txt
index 84ec962..b3b497b 100644
--- a/Documentation/gitattributes.txt
+++ b/Documentation/gitattributes.txt
@@ -63,6 +63,10 @@ path in question, and its parent directories (the further the
 directory that contains `.gitattributes` is from the path in
 question, the lower its precedence).
 
+The $GIT_DIR/info/attributes file is used when you wish to only affect certain
+repositories. It will not be copied to other repositories by automatic
+operations such as clone, fetch, etc.
+
 Sometimes you would need to override an setting of an attribute
 for a path to `unspecified` state.  This can be done by listing
 the name of the attribute prefixed with an exclamation point `!`.
diff --git a/Documentation/gitignore.txt b/Documentation/gitignore.txt
index e847b3b..435f23c 100644
--- a/Documentation/gitignore.txt
+++ b/Documentation/gitignore.txt
@@ -34,6 +34,9 @@ precedence, the last matching pattern decides the outcome):
    files generated as part of the project build.
 
  * Patterns read from `$GIT_DIR/info/exclude`.
+ * The $GIT_DIR/info/exclude file is used when you wish to only affect
+   certain repositories. It will not be copied to other repositories by
+   automatic operations such as clone, fetch, etc.
 
  * Patterns read from the file specified by the configuration
    variable 'core.excludesfile'.
-- 
1.5.4.3
Next: Jeff King
Message 1 of 2 in “Add notes that some $GIT_DIR/info/ files are not copied by clone, etc.”
  1. Add notes that some $GIT_DIR/info/ files are not copied by clone, etc.Toby Corkindale, Mar 27, 2008
  2. Jeff KingMar 27, 2008

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.