Storing file permissions in Subversion repository

前端 未结 12 1309
情话喂你
情话喂你 2020-12-01 20:57

How do you store file permissions in a repository? A few files need to be read-only to stop a third party program from trashing it but after checking out of the repository t

12条回答
  •  一个人的身影
    2020-12-01 21:17

    SVN does have the capability of storing metadata (properties) along with a file. The properties are basically just key/value pairs, however there are some special keys like the 'svn:executable', if this property exists for a file, Subversion will set the filesystem's executable bit for that file when checking the file out. While I know this is not exactly what you are looking for it might just be enough (was for me).

    There are other properties for line ending (svn:eol-style) and mime type(svn:mime-type).

提交回复
热议问题