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

Re: git-archive ignores export-ignore

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 22, 2010, 00:57 UTC
Message-ID
<7vocknhs70.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20100121221312.GB5307@penguin.codegnome.org>
"Todd A. Jacobs" <nospam@codegnome.org> writes:
Show 15 quoted lines
> Using git 1.6.4.2, the manual page prophesies that:
>
>     Files and directories with the attribute export-ignore won't be
>     added to archive files. See gitattributes(5) for details.
>
> However, various tools seem to be unhappy about this attribute. In
> particular, checkout complains about invalid attributes:
>
>     $ cat .gitattributes
>     *.py export-subst
>     *.html export-subst
>     juniperxml.cfg export-ignore
>
>     $ git checkout juniperxml.cfg
>     export-ignore is not a valid attribute name: .gitattributes:3
    $ cat .gitattributes
    * whitespace=!indent,trail,space
    *.[ch] whitespace=indent,trail,space
    *.sh whitespace=indent,trail,space
    COPYING export-ignore
    $ git checkout COPYING
    $ wc -l COPYING
    360 COPYING

There is something that is different in my failed attempt to reproduce it from your problem description, but I cannot tell what it is.

Do you have some garbage character immediately after "e" in "-ignore"?
Previous: Todd A. JacobsNext: Todd A. Jacobs
Message 2 of 3 in “git-archive ignores export-ignore”
  1. Todd A. JacobsJan 21, 2010
  2. Junio C HamanoJan 22, 2010
  3. Todd A. JacobsJan 22, 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.