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

Re: How to ignore deleted files

From
SBSanti Béjar <sbejar@gmail.com>
Date
Mar 11, 2008, 15:07 UTC
Message-ID
<8aa486160803110807m277363d6kaf7e1dd401fc9e2f@mail.gmail.com>
In-Reply-To
<47D69CE0.3030505@bioinf.uni-sb.de>

On Tue, Mar 11, 2008 at 3:53 PM, Andreas Hildebrandt <anhi@bioinf.uni-sb.de> wrote:

Show 9 quoted lines
>
>  I absolutetly agree that it's strange. The main reason for this is that
>  we have some collections of data files (some of them pretty large) that
>  can be compressed pretty effectively. At compilation time, it is decided
>  if the files are needed or not. If so, they are extracted. In the end,
>  the .tar.gz files are deleted since they are no longer needed. In
>  addition, once a user obtained a checkout, the whole thing is supposed
>  to work without a further net connection, so downloading the files
>  during build is not really an option.
Maybe you can have a look to pristine-tar. From:
http://kitenet.net/~joey/code/pristine-tar/

pristine-tar can regenerate a pristine upstream tarball using only a small binary delta file and a copy of the source which can be a revision control checkout.

The package also includes a pristine-gz command, which can regenerate a pristine .gz file.

The delta file is designed to be checked into revision control along-side the source code, thus allowing the original tarball to be extracted from revision control.

---------------------
So you can recreate the tar from files in a git branch.
Santi
Previous: Andreas HildebrandtNext: Sergio Callegari
Message 4 of 6 in “How to ignore deleted files”
  1. Andreas HildebrandtMar 11, 2008
  2. Jakub NarebskiMar 11, 2008
  3. Andreas HildebrandtMar 11, 2008
  4. Santi BéjarMar 11, 2008
  5. Git and pristine-tarSergio Callegari, Mar 11, 2008
  6. David TweedMar 11, 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.