From 4913e5c68ae7784a5489c9fcf0f2113284a79a32 Mon Sep 17 00:00:00 2001 From: Scott Lowe Date: Tue, 8 Sep 2015 23:03:03 +0100 Subject: [PATCH] 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 --- Matlab.gitattributes | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Matlab.gitattributes diff --git a/Matlab.gitattributes b/Matlab.gitattributes new file mode 100644 index 0000000..b300130 --- /dev/null +++ b/Matlab.gitattributes @@ -0,0 +1,25 @@ +# 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