我应该进行外观更改吗? [英] Should I commit cosmetic changes?

查看:62
本文介绍了我应该进行外观更改吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我经常想对源代码控件进行一些小的编码样式更改,但是现在更改日志中充满了那些不影响代码功能的更改。

There are minor coding style changes that I often want to commit to the source control, but now the change log is full of those changes that do not affect code functionality.

下次我必须修复一些小问题时,该怎么做:

What should I do next time I have to fix minor things like:


  • 删除和排序使用(在.NET中,使用python导入,包括在c ++中)

  • 正确的缩进,间距和换行符

推荐答案

如果您要更改代码文件,我真的看不到为什么您不想提交和共享这些更改。如果您不这样做,则冒着别人将其修复然后与您的冲突的风险。

If you are changing the code file, I don't really see why you wouldn't want to commit and share those changes. If you don't you run the risk that someone else will fix them and then collide with yours.

如果它们不是代码库中其他用户想要的更改,也许你应该问自己为什么要花时间写这些东西。

If they aren't changes that other users want in the codebase, perhaps you should ask yourself why you are spending time writing them.

这篇关于我应该进行外观更改吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆