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

Re: Multiblobs

From
Peter Krefting <peter@softwolves.pp.se>
Date
Apr 29, 2010, 11:34 UTC
Message-ID
<alpine.DEB.2.00.1004291231410.16241@ds9.cixit.se>
In-Reply-To
<k2x32541b131004281427o2101720at3d324f5e94f05327@mail.gmail.com>
Avery Pennarun:
> But why not use a .gitattributes filter to recompress the zip/odp file 
> with no compression, as I suggested?  Then you can just dump the whole 
> thing into git directly.

The advantage would be that you could look at the history of the individual components of the zip/openoffice file and follow changes. When looking at the entire zip file (even if using no compression), it is still a compound file.

The few times I need to version control zip or openoffice files, I only need to version control it *as* a zipped file, I don't need the version control to ensure that I get exactly the file out that I put in, just that it is zipped in both ends. If Git could do that by unzipping and storing the individual components itself, that would be great.

Or if someone could create a "zgit" that would allow me to version control such a file by internally unzipping it and storing it in git, and then zipping it up on checkout.

Having support for merging files inside the zip file would also be a wonderful feature to have, especially if the zip file holds mostly-text data.

-- 
\\// Peter - http://www.softwolves.pp.se/
Previous: Avery PennarunNext: Avery Pennarun
Message 8 of 21 in “Multiblobs”
  1. Sergio CallegariApr 28, 2010
  2. Avery PennarunApr 28, 2010
  3. Sergio CallegariApr 28, 2010
  4. Avery PennarunApr 28, 2010
  5. Michael WittenApr 28, 2010
  6. SergioApr 28, 2010
  7. Avery PennarunApr 29, 2010
  8. Peter KreftingApr 29, 2010
  9. Avery PennarunApr 29, 2010
  10. Peter KreftingApr 30, 2010
  11. Avery PennarunApr 30, 2010
  12. Hervé CauwelierApr 30, 2010
  13. Avery PennarunApr 30, 2010
  14. Michael WittenApr 30, 2010
  15. Hervé CauwelierApr 30, 2010
  16. Geert BoschApr 28, 2010
  17. Mike HommeyApr 29, 2010
  18. Jeff KingMay 6, 2010
  19. Sergio CallegariMay 6, 2010
  20. Jeff KingMay 10, 2010
  21. Sergio CallegariMay 10, 2010

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.