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

Re: Multiblobs

From
Avery Pennarun <apenwarr@gmail.com>
Date
Apr 29, 2010, 15:28 UTC
Message-ID
<x2v32541b131004290828ua9c2d194o1280177360dd231e@mail.gmail.com>
In-Reply-To
<alpine.DEB.2.00.1004291231410.16241@ds9.cixit.se>
On Thu, Apr 29, 2010 at 7:34 AM, Peter Krefting <peter@softwolves.pp.se> wrote:
Show 7 quoted lines
> 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.

This use case seems to be converging more and more on the "clean/smudge filter like" idea, which might be ok. But I think it would be a kind of messy if the git index/worktree shows only one file, but the actual object shows up as a tree, though. What should 'git show HEAD:filename.odt' do? How about 'git cat-file HEAD:filename.odt'? What if I *do* want to check out one of the individual components?

It might be saner to just write some wrapper scripts on top of git, and cleanly just check in the individual components. Then just build a Makefile and run something like 'make extract' before checkin (to make sure all the .odp files/etc are broken into components) and 'make assemble' after checkout.

Have fun,
Avery
Previous: Peter KreftingNext: Peter Krefting
Message 9 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.