Working with zip files

2 messages, 2 authors, 2016-08-16 · open the first message on its own page

Working with zip files

From: Nikolaus Rath <hidden>
Date: 2016-08-16 16:25:17

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 files?

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.«

Re: Working with zip files

From: David Lang <hidden>
Date: 2016-08-16 16:28:03

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.

I think there's a way to tell it to do a xml aware diff/patch, but I don't 
remember how.

David Lang
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help