Re: how to git-archive ignore some files?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: René Scharfe
Date: Tuesday, May 6, 2008 - 2:23 pm

Sean Estabrooks schrieb:

Or, if there is only a small number of files in your repository, you
could do something like this:

   git archive HEAD -- \
      $(git ls-tree -r --name-only HEAD | grep -v '^\.gitignore$')

To really solve this without external tools, git-archive needed to grow
an --exclude option like git-ls-files, though.

René

--
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)