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

Delta compression hooks

From
SLSoni L. <fakedme+git@gmail.com>
Date
May 4, 2017, 22:48 UTC
Message-ID
<b8f1dab4-896f-c9ad-7a89-87aacb2c3e61@gmail.com>

Can we get delta compression hooks? I'm working with voxel data as my source code (it's a long story...) and git doesn't handle changing lines of voxels very well.

Example, I have something from position (0,0,0) to position (0,10,0) and I replace it with something else. Git doesn't handle this difference very well if the file is encoded in XYZ order (it'd handle it exceptionally well if the file was in YXZ or YZX order), and Z-order curves aren't much better. It's even worse if the file is compressed.

The hooks/plugins would be required on the sending end and on the receiving end, but bare repos wouldn't need to know about them (github could show "unknown diff" or something). This is good because such plugins would effectively be machine code, so you don't want bare repos running them.

Other source-y things that would benefit from this:
- 2D image source code http://esolangs.org/wiki/Piet
- photoshop files
- database files (well uh, I guess this is more "data" than "source"... 
I'm sure someone out there is storing source code in a database, tho)
Next: Stefan Beller
Message 1 of 3 in “Delta compression hooks”
  1. Soni L.May 4, 2017
  2. Stefan BellerMay 4, 2017
  3. Soni L.May 4, 2017

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.