If a model has SLX compression set to 'none', should .gitattributes still flag .slx as 'binary'?

7 visualizzazioni (ultimi 30 giorni)
The documentation for using Git makes the following suggestion:
"You can reduce your Git™ repository size by saving Simulink models without compression. Turning off compression results in larger SLX files on disk, but reduces repository size."
Does this mean that SLX files with no compression are not binary and can be removed from the .gitattributes file? Otherwise, how can Git reduce its repo size?
  1 Commento
Jari
Jari il 4 Mar 2024
In my experience, treating .slx as text opens up the danger of git modifying what it believes to be line endings but what is really just the header of the SLX file, thereby corrupting the SLX and rendering the file unreadable.
I for one cannot find a way to get git to diff simulink models, even after reading the MathWorks documentation. The previous maintainers of the repository I am working with have opted to ignore this and enable model compression, but over the years this has resulted in a truly large repository size.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Source Control Integration in Help Center e File Exchange

Prodotti


Release

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by