login
Header Space

 
 

Re: how to git-archive ignore some files?

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: David Bryson <david@...>
Cc: Victor Bogado da Silva Lins <victor@...>, <git@...>
Date: Thursday, May 8, 2008 - 4: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 Silva Lins..., (Tue May 6, 2:15 pm)
Re: how to git-archive ignore some files?, David Bryson, (Thu May 8, 1:04 pm)
Re: how to git-archive ignore some files?, Johannes Schindelin, (Thu May 8, 4:22 pm)
Re: how to git-archive ignore some files?, Sean Estabrooks, (Tue May 6, 2:56 pm)
Re: how to git-archive ignore some files?, René Scharfe, (Tue May 6, 5:23 pm)
Re: how to git-archive ignore some files?, Junio C Hamano, (Tue May 6, 6:08 pm)
Re: how to git-archive ignore some files?, René Scharfe, (Sun May 11, 6:44 am)
Re: how to git-archive ignore some files?, Junio C Hamano, (Sun May 11, 12:20 pm)
Re: how to git-archive ignore some files?, Jakub Narebski, (Mon May 12, 5:36 am)
Re: how to git-archive ignore some files?, René Scharfe, (Sun Jun 8, 12:42 pm)
speck-geostationary