问题
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