Re: how to git-archive ignore some files?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Johannes Schindelin
Date: Thursday, May 8, 2008 - 1:22 pm

Hi,

On Thu, 8 May 2008, David Bryson wrote:


I wonder if the most natural way with Git would not be to create a 
throw-away tree:

cp .git/index .git/tmp-index &&
GIT_INDEX_FILE=.git/tmp-index git rm --cached .gitignore &&
git archive $(GIT_INDEX_FILE=.git/tmp-index git write-tree) &&
rm .git/tmp-index

WARNING: this has not seen any testing.

Ciao,
Dscho

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
how to git-archive ignore some files?, Victor Bogado da Sil ..., (Tue May 6, 11:15 am)
Re: how to git-archive ignore some files?, Sean Estabrooks, (Tue May 6, 11:56 am)
Re: how to git-archive ignore some files?, René Scharfe, (Tue May 6, 2:23 pm)
Re: how to git-archive ignore some files?, Junio C Hamano, (Tue May 6, 3:08 pm)
Re: how to git-archive ignore some files?, David Bryson, (Thu May 8, 10:04 am)
Re: how to git-archive ignore some files?, Johannes Schindelin, (Thu May 8, 1:22 pm)
Re: how to git-archive ignore some files?, René Scharfe, (Sun May 11, 3:44 am)
Re: how to git-archive ignore some files?, Junio C Hamano, (Sun May 11, 9:20 am)
Re: how to git-archive ignore some files?, Jakub Narebski, (Mon May 12, 2:36 am)
Re: how to git-archive ignore some files?, René Scharfe, (Sun Jun 8, 9:42 am)