如何在Gerrit中向给定补丁集添加说明? [英] How to add descption to a given patchset in Gerrit?

查看:84
本文介绍了如何在Gerrit中向给定补丁集添加说明?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以创建新的补丁集到给定的Gerrit没有问题.

I can create new patchset to a given Gerrit without issues.

但是,我想描述一下补丁集.我一直在做这件事,作为提交消息的一部分,因为我提交了-amend并用修订后的注释推送了新的补丁集.

However, I would like to describe what the patchset is about. I have been doing that as part of the commit message, as I commit -amend and push the new patchset with the revised comment.

在提交消息中是否存在定义良好的描述补丁集的方式,因此Gerrit可以自动设置其描述?到目前为止,我发现的唯一提到的内容是来自此页面的:

Is there a well defined way of describing the patchset in the commit message, so Gerrit can automatically set its description? The only mentioning of the description I found so far was from this page:

https://www.gerritcodereview.com/concept-patch-sets.html#description

推荐答案

嘿,看来我找到了自己问题的可能答案.:)

Heh, looks like I found a potential answer for my own question. :)

如果我使用%m = 对push命令进行编码,我似乎可以设置补丁集的描述.感觉有点,我需要更换带有 _ 和百分比的空格也会对字符进行编码.

If I encode the push command with a %m= I seem to be able to set the description for the patchset. It feels a little hacky, in that I need to replace spaces with _ and percent encode characters as well.

gerrit的代码文档中进行了描述评论.

示例:

git push ssh://john.doe@git.example.com:29418/kernel/common HEAD:refs/for/experimental%m=This_is_a_rebase_on_master%21

您可能知道的其他/更好的方式吗?

Any other/better way that you may know about?

这篇关于如何在Gerrit中向给定补丁集添加说明?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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