git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to exclude some files when using git-archive?
@ 2009-01-16  2:40 Ping Yin
  2009-01-16  2:44 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Ping Yin @ 2009-01-16  2:40 UTC (permalink / raw)
  To: Git Mailing List

I want to exclude .gitignore from the archive, but hasn't find a easy way

Ping Yin

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to exclude some files when using git-archive?
  2009-01-16  2:40 How to exclude some files when using git-archive? Ping Yin
@ 2009-01-16  2:44 ` Junio C Hamano
  2009-01-16  5:26   ` Ping Yin
  0 siblings, 1 reply; 3+ messages in thread
From: Junio C Hamano @ 2009-01-16  2:44 UTC (permalink / raw)
  To: Ping Yin; +Cc: Git Mailing List

Ping Yin <pkufranky@gmail.com> writes:

> I want to exclude .gitignore from the archive, but hasn't find a easy way
>
> Ping Yin

"man gitattributes", then look for export-ignore?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to exclude some files when using git-archive?
  2009-01-16  2:44 ` Junio C Hamano
@ 2009-01-16  5:26   ` Ping Yin
  0 siblings, 0 replies; 3+ messages in thread
From: Ping Yin @ 2009-01-16  5:26 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Git Mailing List

On Fri, Jan 16, 2009 at 10:44 AM, Junio C Hamano <gitster@pobox.com> wrote:
> Ping Yin <pkufranky@gmail.com> writes:
>
>> I want to exclude .gitignore from the archive, but hasn't find a easy way
>>
>> Ping Yin
>
> "man gitattributes", then look for export-ignore?
>
>

Thanks. That's exactly what i want.

One question: It seems the .gitattributes doesn't take effect when
using following command

GIT_DIR=A/.git git archive HEAD > A.tar

where the files with attribute export-ignore are still exported.

Instead, i have to run

cd A && git archive HEAD > A.tar

Ping Yin

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-01-16  5:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-16  2:40 How to exclude some files when using git-archive? Ping Yin
2009-01-16  2:44 ` Junio C Hamano
2009-01-16  5:26   ` Ping Yin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).