Is there a way to make TortoiseSVN temporarily ignore versioned files?

后端 未结 3 645
后悔当初
后悔当初 2021-01-07 01:33

We have certain configuration files which we want to be in version control as they specify project\'s default settings: search path, conditional defines etc. Unfortunately t

3条回答
  •  一个人的身影
    2021-01-07 02:05

    No, I don't think that is possible. A solution might be to put the "canonical" version of these files into some subdirectory such as "idefiles", which gets checked in, but not used by the IDE. The files in use by the IDE can then be deleted from the repo and ignored.

    If you want to check in "important changes", just copy them to "idefiles".

    Only disadvantage:

    On first checkout, people must remember to copy stuff from "idefiles" to the proper location. But first checkouts are usually rare...

    Also, if "idefiles" changes, changes must be manually copied into the read IDE files. But that might be useful (dev might not want local config to be overwritten).

    BTW, the problem of "config files in version control" has been discussed before, e.g.:

    How to store configuration parameters in SVN?

提交回复
热议问题