How to add descption to a given patchset in Gerrit?

倾然丶 夕夏残阳落幕 提交于 2021-01-29 07:25:45

问题


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

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.

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


回答1:


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

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.

That is described gerrit's documentation for code review.

Example:

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?



来源:https://stackoverflow.com/questions/54057456/how-to-add-descption-to-a-given-patchset-in-gerrit

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!