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

[PATCH] git-archive documentation: .gitattributes must be committed

From
FMFrancois Marier <fmarier@gmail.com>
Date
Feb 10, 2010, 02:51 UTC
Message-ID
<1265770284-14830-1-git-send-email-fmarier@gmail.com>

Add a note to the documentation stating that the .gitattributes file must be present (i.e. committed) in the named tree that is exported.

This can be a bit confusing because it's different from .gitignore which takes effect as soon as the file is created.

Signed-off-by: Francois Marier <fmarier@gmail.com>
---
 Documentation/git-archive.txt |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/Documentation/git-archive.txt b/Documentation/git-archive.txt
index 799c8b6..fcd681d 100644
--- a/Documentation/git-archive.txt
+++ b/Documentation/git-archive.txt
@@ -112,6 +112,9 @@ export-subst::
 	expand several placeholders when adding this file to an archive.
 	See linkgit:gitattributes[5] for details.
 
+The .gitattributes file must be present in the named tree for it to take
+effect. Uncommitted attributes will not be considered in exports.
+
 EXAMPLES
 --------
 git archive --format=tar --prefix=junk/ HEAD | (cd /var/tmp/ && tar xf -)::
-- 
1.6.6.1
Next: René Scharfe
Message 1 of 8 in “git-archive documentation: .gitattributes must be committed”
  1. git-archive documentation: .gitattributes must be committedFrancois Marier, Feb 10, 2010
  2. René ScharfeFeb 10, 2010
  3. Junio C HamanoFeb 10, 2010
  4. Junio C HamanoFeb 10, 2010
  5. René ScharfeFeb 10, 2010
  6. Junio C HamanoFeb 10, 2010
  7. Junio C HamanoFeb 10, 2010
  8. Francois MarierFeb 11, 2010

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.