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

Re: git-archive and unwanted .gitattributes

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Jun 7, 2008, 16:19 UTC
Message-ID
<fcaeb9bf0806070919k105263c8ybc9c04ffd11e3224@mail.gmail.com>
In-Reply-To
<m33anpxn63.fsf@localhost.localdomain>
On Sat, Jun 7, 2008 at 10:47 PM, Jakub Narebski <jnareb@gmail.com> wrote:
Show 9 quoted lines
> "Nguyen Thai Ngoc Duy" <pclouds@gmail.com> writes:
>
>> Currently attr.c will read .gitattributes on disk no matter there is a
>> real worktree or not.
>
> Currently .gitattributes are read _only_ from the work tree.
> There isn't even infrastructure to read .gitattributes for commit
> (from a tree); git-check-attr, and I guess also internal git API,
> deals only with in-tree .gitattribute file.

I saw it read from index but forgot that index != tree :( So git-archive + export-subst just does not work as expected.

-- 
Duy
Previous: Jakub NarebskiNext: René Scharfe
Message 3 of 8 in “git-archive and unwanted .gitattributes”
  1. Nguyen Thai Ngoc DuyJun 7, 2008
  2. Jakub NarebskiJun 7, 2008
  3. Nguyen Thai Ngoc DuyJun 7, 2008
  4. René ScharfeJun 8, 2008
  5. fix attribute handling in bare repositoriesRené Scharfe, Jun 8, 2008
  6. Junio C HamanoJun 8, 2008
  7. René ScharfeJun 8, 2008
  8. Nguyen Thai Ngoc DuyJun 9, 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.