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

后端 未结 3 1707
你的背包
你的背包 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-07 03:20

    For Windows users, you can use TortoiseSVN (a Windows Explorer shell extension for Subversion) which comes with merge features that support what you are describing:

    Ignore line endings excludes changes which are due solely to difference in line-end style.

    Compare whitespaces includes all changes in indentation and inline whitespace as added/removed lines.

    Ignore whitespace changes excludes changes which are due solely to a change in the amount or type of whitespace, eg. changing the indentation or changing tabs to spaces. Adding whitespace where there was none before, or removing a whitespace completely is still shown as a change.

    Ignore all whitespaces excludes all whitespace-only changes.

提交回复
热议问题