Storing file permissions in Subversion repository

前端 未结 12 1241
情话喂你
情话喂你 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:22

    One possible solution would be to write a script that you check in with the rest of your code and which is run as the first step of your build process.

    This script runs through your copy of the codebase and sets read permissions on certain files.

    Ideally the script would read the list of files from a simple input file. This would make it easy to maintain and easy for other developers to understand which files get marked as read-only.

提交回复
热议问题