Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Diff compressed text files in Fisheye / Crucible?

Philip Schlesinger September 21, 2015

Hi all,

We use MatLab which saves data in .slx files.  Those .slx files are actually zip files which contain a series of XML files.

I have been able to get git to give me a diff upon staging per https://tante.cc/2010/06/23/managing-zip-based-file-formats-in-git/

Open your ~/.gitconfig file (create if not existing already) and add the following stanza:

[diff "zip"]
textconv = unzip -c -a

What it does is using “unzip -c -a FILENAME” to convert your zipfile into ASCII text (unzip -c unzips to STDOUT). Next thing is to create/modify the file REPOSITORY/.gitattributes and add the following

*.slx diff=zip

 

How do I get Fisheye and Crucible to give me the same diff for these .slx files?

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Piotr Swiecicki
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 22, 2015

Hi @Philip Schlesinger,

I'm afraid this is not possible at the moment.  There is an improvement suggestion raised: https://jira.atlassian.com/browse/FE-2388 to offer such funcionality as a plugin point, so it would be possible to create plugins for different formats, including Matlab.  For now the issue doesn't seem highly voted though.   Please cast your vote there if you haven't already and watch the issue, so you would get notified when the issue is updated.

Kind regards,
Piotr

TAGS
AUG Leaders

Atlassian Community Events