如何在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.
示例:
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?