Commit Guidelines

Access to directly submit changes is limited to people with commit access to the repository. Once you are provided with commit access you can start committing directly instead of creating a patch file.

You can make commits from your Git client or using the Git command line tool. The following command will create a commit and send it to the central repository:

  1. git commit -m "This is what I did"
  2. git push

如果你省略了 -m "message",将提示你在文本编辑器中输入留言。

Tip

You should make sure you are always on the latest revision before committing. You may not be able to commit directly if there are conflicting changes in the latest revision.

To avoid this update your local repository before committing (run make update).

See also

Blender 的 Git 使用指南

See also

See Release Cycle for documentation on how to make commits to a specific release branch and how to create merge commits.

写一个好的承诺信息

当对手册进行与Blender中的特定提交(更改)直接相关的更改时,将提交标题与提交给Blender的标题相同很有帮助。要求您包含对Blender源代码所做的提交的提交哈希。

例如,提交 rBM8473 包括指示与散列 rBa71d2b260170 一起做出的改变的描述性说明。可以从文档任务中为即将发布的特定版本提供的URL中提取哈希。


其他更一般的变更不必遵循上述政策,但仍有必要明确说明您所做的变更及其原因。当您分别进行常规清理或修复时,使用前缀词(如 Cleanup:Fix:)来前缀提交标题可能会有所帮助。

编写好的提交消息有助于管理员跟踪所做的更改,并确保所有新功能都得到正确记录。