Re: Working with zip files

2016-08-19 Thread Jakub Narębski
On 18 August 2016 at 18:56, David Lang wrote: > On Thu, 18 Aug 2016, Jakub Narębski wrote: > >> JN>> You can find rezip clean/smudge filter (originally intended for >> JN>> OpenDocument Format (ODF), that is OpenOffice.org etc.) that stores >> JN>> zip or zip-archive (like ODT,

Re: Working with zip files

2016-08-18 Thread David Lang
On Thu, 18 Aug 2016, Jakub Narębski wrote: On 18 August 2016 at 18:56, David Lang wrote: On Thu, 18 Aug 2016, Jakub Narębski wrote: JN>> You can find rezip clean/smudge filter (originally intended for JN>> OpenDocument Format (ODF), that is OpenOffice.org etc.) that stores

Re: Working with zip files

2016-08-18 Thread David Lang
On Thu, 18 Aug 2016, Jakub Narębski wrote: JN>> You can find rezip clean/smudge filter (originally intended for JN>> OpenDocument Format (ODF), that is OpenOffice.org etc.) that stores JN>> zip or zip-archive (like ODT, jar, etc.) uncompressed. I think JN>> you can find it on GitWiki, but I

Re: Working with zip files

2016-08-18 Thread Jakub Narębski
W dniu 16.08.2016 o 22:19, Junio C Hamano pisze: > Jakub Narębski writes: > >> There is also `textconv` filter that can be used instead; it might >> be 'unzip -c' (extract files to stdout, with filenames), or 'unzip -p' >> (same, without filenames). > > That assumes that the

Re: Working with zip files

2016-08-17 Thread David Lang
On Tue, 16 Aug 2016, Nikolaus Rath wrote: On Aug 16 2016, David Lang wrote: On Tue, 16 Aug 2016, Nikolaus Rath wrote: I would like to store Simulink models in a Git repository. Unfortunately, the file format is binary. But luckily, the binary format happens to be a zipfile

Re: Working with zip files

2016-08-16 Thread Jacob Keller
On Tue, Aug 16, 2016 at 2:14 PM, Nikolaus Rath wrote: > On Aug 16 2016, David Lang wrote: >> On Tue, 16 Aug 2016, Nikolaus Rath wrote: >> >>> I would like to store Simulink models in a Git >>> repository. Unfortunately, the file format is binary. But luckily,

Re: Working with zip files

2016-08-16 Thread Nikolaus Rath
On Aug 16 2016, David Lang wrote: > On Tue, 16 Aug 2016, Nikolaus Rath wrote: > >> I would like to store Simulink models in a Git >> repository. Unfortunately, the file format is binary. But luckily, the >> binary format happens to be a zipfile containing nicely formatted XML >>

Re: Working with zip files

2016-08-16 Thread Junio C Hamano
Jakub Narębski writes: > There is also `textconv` filter that can be used instead; it might > be 'unzip -c' (extract files to stdout, with filenames), or 'unzip -p' > (same, without filenames). That assumes that the in-repository data is zipped binary blob; the result won't

Re: Working with zip files

2016-08-16 Thread Jakub Narębski
W dniu 16.08.2016 o 18:58, Junio C Hamano pisze: > David Lang writes: > >> you should be able to use clean/smudge to have git store the files >> uncompressed, which will help a lot. You can find rezip clean/smudge filter (originally intended for OpenDocument Format (ODF), that is

Re: Working with zip files

2016-08-16 Thread Junio C Hamano
David Lang writes: > you should be able to use clean/smudge to have git store the files > uncompressed, which will help a lot. > > I think there's a way to tell it to do a xml aware diff/patch, but I > don't remember how. I do not know about "patch" (in the sense of "git apply"),

Re: Working with zip files

2016-08-16 Thread David Lang
On Tue, 16 Aug 2016, Nikolaus Rath wrote: On Aug 16 2016, David Lang wrote: On Tue, 16 Aug 2016, Nikolaus Rath wrote: I would like to store Simulink models in a Git repository. Unfortunately, the file format is binary. But luckily, the binary format happens to be a zipfile

Re: Working with zip files

2016-08-16 Thread Nikolaus Rath
On Aug 16 2016, David Lang wrote: > On Tue, 16 Aug 2016, Nikolaus Rath wrote: > >> I would like to store Simulink models in a Git >> repository. Unfortunately, the file format is binary. But luckily, the >> binary format happens to be a zipfile containing nicely formatted XML >>

Re: Working with zip files

2016-08-16 Thread David Lang
On Tue, 16 Aug 2016, Nikolaus Rath wrote: I would like to store Simulink models in a Git repository. Unfortunately, the file format is binary. But luckily, the binary format happens to be a zipfile containing nicely formatted XML files. Is there a way to teach Git to take advantage of this

Working with zip files

2016-08-16 Thread Nikolaus Rath
Hello, I would like to store Simulink models in a Git repository. Unfortunately, the file format is binary. But luckily, the binary format happens to be a zipfile containing nicely formatted XML files. Is there a way to teach Git to take advantage of this when storing, diff-ing and merging these