git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: how to git-archive ignore some files?

From
René Scharfe <rene.scharfe@lsrfire.ath.cx>
Date
May 11, 2008, 10:44 UTC
Message-ID
<4826CE0B.8080109@lsrfire.ath.cx>
In-Reply-To
<7vk5i7gk6e.fsf@gitster.siamese.dyndns.org>
Junio C Hamano schrieb:
Show 7 quoted lines
> René Scharfe <rene.scharfe@lsrfire.ath.cx> writes:
> 
>> To really solve this without external tools, git-archive needed to
>> grow an --exclude option like git-ls-files, though.
> 
> Because exclude is never about ignoring what is already tracked, an
> option "like" git-ls-files would not help this case, I am afraid.
True, it should be named differently, e.g. --ignore.

Another idea: would it make sense to have an attribute for that instead (or in addition to the command line parameter)? I.e. files marked export-ignore would not end up in the archive. I suspect the set of files to ignore doesn't change from archive to archive one creates.

René
Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 10 in “how to git-archive ignore some files?”
  1. Victor Bogado da Silva LinsMay 6, 2008
  2. Sean EstabrooksMay 6, 2008
  3. René ScharfeMay 6, 2008
  4. Junio C HamanoMay 6, 2008
  5. René ScharfeMay 11, 2008
  6. Junio C HamanoMay 11, 2008
  7. Jakub NarebskiMay 12, 2008
  8. René ScharfeJun 8, 2008
  9. David BrysonMay 8, 2008
  10. Johannes SchindelinMay 8, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.