git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Delta compression hooks
@ 2017-05-04 22:48 Soni L.
  2017-05-04 22:57 ` Stefan Beller
  0 siblings, 1 reply; 3+ messages in thread
From: Soni L. @ 2017-05-04 22:48 UTC (permalink / raw)
  To: git

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)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Delta compression hooks
  2017-05-04 22:48 Delta compression hooks Soni L.
@ 2017-05-04 22:57 ` Stefan Beller
  2017-05-04 23:40   ` Soni L.
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Beller @ 2017-05-04 22:57 UTC (permalink / raw)
  To: Soni L.; +Cc: git@vger.kernel.org

On Thu, May 4, 2017 at 3:48 PM, Soni L. <fakedme+git@gmail.com> wrote:
> 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.

Maybe look into smudge filters to store the data in a different format
inside Git
than what is in the working tree.

https://git-scm.com/docs/gitattributes

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Delta compression hooks
  2017-05-04 22:57 ` Stefan Beller
@ 2017-05-04 23:40   ` Soni L.
  0 siblings, 0 replies; 3+ messages in thread
From: Soni L. @ 2017-05-04 23:40 UTC (permalink / raw)
  To: Stefan Beller; +Cc: git@vger.kernel.org



On 2017-05-04 07:57 PM, Stefan Beller wrote:
> On Thu, May 4, 2017 at 3:48 PM, Soni L. <fakedme+git@gmail.com> wrote:
>> 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.
> Maybe look into smudge filters to store the data in a different format
> inside Git
> than what is in the working tree.
>
> https://git-scm.com/docs/gitattributes

Those can only do so much. The best it can do is re-encode voxel data 
into Z-order curves, or recompress files into pseudo-compressed format 
(valid gzip file but every block is of type "uncompressed data").

I want something that can say "this file is 3D and we change a line of 
voxels here".

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-05-04 23:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-04 22:48 Delta compression hooks Soni L.
2017-05-04 22:57 ` Stefan Beller
2017-05-04 23:40   ` Soni L.

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).