1
0
mirror of https://github.com/gitattributes/gitattributes.git synced 2025-01-22 16:28:24 -05:00
gitattributes/Matlab.gitattributes
Scott Lowe 4913e5c68a Create Matlab.gitattributes
Ensure *.m and *.mu files containing MATLAB or MuPad code are
recognised as text files, and all other MathWorks proprietary
compiled file types are recognised as binaries. These includes
MATLAB, Simulink, and MuPAD file extensions.

Sources:
https://uk.mathworks.com/help/matlab/matlab_prog/set-up-git-source-control.html
https://uk.mathworks.com/help/matlab/matlab_env/mathworks-file-extensions.html
2015-09-08 23:51:52 +01:00

26 lines
971 B
Plaintext

# Basic .gitattributes for a MATLAB repo.
# This template includes Simulink and MuPAD extensions, in addition
# to the MATLAB extensions.
# Source files
# ============
*.m text # MATLAB source code
# Caution: *.m also matches Mathematica packages.
*.mu text # MuPAD code
# Binary files
# ============
*.p binary # obfuscated .m file
*.mex* binary # compiled .m file
*.fig binary # MATLAB figure
*.mat binary # MATLAB variable dump
*.mdl binary # simulink model
*.slx binary # simulink model
*.mdlp binary # obfuscated simulink model
*.slxp binary # obfuscated simulink model
*.sldd binary # simulink datadirectory
*.mltbx binary # toolbox installer
*.mlappinstall binary # app installer
*.mlpkginstall binary # package installer
*.mn binary # mupad notebook