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 COPYINGThere 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"?