Merging without whitespace conflicts

前端 未结 2 1966
走了就别回头了
走了就别回头了 2020-11-30 16:29

I\'ve got a problem where I\'ve got a large commit which changes about a thousand lines of code, removing whitespace from the end of lines and removing spaces before tabs.

2条回答
  •  死守一世寂寞
    2020-11-30 17:01

    If you see that you have a lot of whitespace issues in a merge, you can simply abort it and do it again, this time with -Xignore-all-space or -Xignore-space-change. The first option ignores whitespace completely when comparing lines, the second treats sequences of one or more whitespace characters as equivalent.

提交回复
热议问题