Why is it bad to commit lines with trailing whitespace into source control?

后端 未结 6 1074
渐次进展
渐次进展 2021-02-18 14:59

Why is it bad to check in lines with trailing whitespace to your source control? What kinds of problems could that cause?

6条回答
  •  死守一世寂寞
    2021-02-18 15:19

    Some editors automatically remove trailing whitespace, some don't. This creates diff noise and can cause merge conflicts.

提交回复
热议问题