Re: Working with zip files
- From
Nikolaus Rath <nikolaus@rath.org>
- Date
- Aug 16, 2016, 16:32 UTC
- Message-ID
- <87shu4wu6o.fsf@thinkpad.rath.org>
- In-Reply-To
- <alpine.DEB.2.02.1608160926330.11774@nftneq.ynat.uz>
On Aug 16 2016, David Lang <david@lang.hm> wrote:
Show 12 quoted lines
> 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 when storing, >> diff-ing and merging these files? > > you should be able to use clean/smudge to have git store the files > uncompressed, which will help a lot.
Cool, I'll look into that.
> I think there's a way to tell it to do a xml aware diff/patch, but I > don't remember how.
Oh, I didn't even want to go that far. I'm perfectly happy if it does a text-based diff/patch of the contained XML files. Would clean/smudge provide that already?
Best, -Nikolaus
--
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F
»Time flies like an arrow, fruit flies like a Banana.«