提交消息是以现在还是过去时态写入? [英] Should commit messages be written in present or past tense?

查看:129
本文介绍了提交消息是以现在还是过去时态写入?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

那么你认为哪个更好,更直观呢?

So which is it that you think is better and more intuitive?

Fixed the XXX bug in YYY
Fix the XXX bug in YYY
Fixes the XXX bug in YYY
Fixing the XXX bug in YYY

请提供您的理由。注意我从你的一般观点来询问,这意味着你不应该尝试将它与你喜欢的svn / cvs工具或编程语言相关联,而是认为它应该/可以应用于任何工具和编程语言。 p>

Please provide your rationales. Note I am asking from your general perspective, meaning you should not try to associate this with your preferred svn/cvs tools or programming languages, but rather think of it as something that should/can be applied to any tools and programming languages.

推荐答案

我认为这些消息和其他开发人员一样。他们还没有应用更改,并有隐式问题,什么将应用此更改集/修补程序?它会修复YYY中的XXX错误!

I think of these messages as they appear to other developers. They don't yet have the changes applied, and there is the implicit question, "what will applying this changeset/patch do?" It will "Fix the XXX bug in YYY"!

对于其他动词编写它们作为命令似乎更自然,如果你有一个特定的目标, ;你可以在完成工作之前,逐字地写提交摘要以及前期测试。

For other verbs writing them as a command seems more natural, and works better if you have a specific goal up-front—you can literally write the commit summary along with up-front tests before the work is done.

我不会放大量的重量,但是我这是最小阻力的路径,同时保持一致性。

I don't put a huge amount of weight on it, but for me this is the path of least resistance while maintaining consistentency.

这篇关于提交消息是以现在还是过去时态写入?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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