Background:
I have two Unity3d projects:
- The first whose Unity preferences are set to 'mixed asset' mode (some files are text, some are binary) and
- The second whose preferences are set to 'force text' (most binary files are translated to
YAML
text, so nearly all files can bediff
ed).
In order to set the 1st project's files to text/binary, our ~/.subversion/config
file has svn auto-props
enabled along with the list of files and their svn properties (*.cs files set to svn:eol-style=native
, *.unity files are set to svn:mime-type=application/octet-stream
, and so forth).
Problem:
Since our second project now supports a text mode for all the files, we would need to use a different set of auto-props
rules so the *.unity files are now handled as svn:eol-style=native
.
I see that git
can use .gitattributes
which is on a per-project (or per-directory) basis, so we could have this functionality. Can SVN do this with some sort of file we can share in our repo so everyone who commits will use the same default settings?