Can CVS and Subversion be set to ignore whitespace in merging?

后端 未结 3 1716
你的背包
你的背包 2021-02-07 02:51

CVS and Subversion both have a handy merge feature so that when you update a source file that you have modified, it merges in changes that others have made on the same file.

3条回答
  •  情深已故
    2021-02-07 03:28

    For SVN: In commandline tool, there is the option -x which you can set to "b" or "w" to ignore space changes resp. all spaces.
    You can also supply a third party tool for doing the merges. So if you have a merger which ignores whitespaces, you can use this one. TortoiseSVN, as always, is a frontend to all parameters, so it will support for ignoring whitespaces as well.

    The svn merge command is described here. The option you need is --diff3-cmd

提交回复
热议问题