[openstack-dev] git commit message: change id will before bug/bp when first commit
aji.zqfan at gmail.com
Mon Aug 19 02:46:46 UTC 2013
On Mon, Aug 19, 2013 at 12:52 AM, Jeremy Stanley <fungi at yuggoth.org> wrote:
> On 2013-08-18 14:25:22 +0800 (+0800), ZhiQiang Fan wrote:
> > When submit code review in gerrit, i have been recommended put
> > Fixes-Bug: #bug-id/Implement-Blueprint: #bp-desc before chang-id.
> > However, when first run git commit in a seperate patch branch,
> > the change-id will generate before bug/bp, it is automatically,
> > so i have to use git commit --amend to modify the commit message
> > and put bug/bp before chang-id.
> > Is there any way to let Change-id generate after whole commit
> > message? (more precisely, after bug/bp.)
> Gerrit's Change-Id metadata header line doesn't need to be the very
> last line, it just needs to be one of the lines in the last
> paragraph of the commit message. This is standard for all metadata
> headers including things common elsewhere like Signed-Off-By but the
> same goes for our Fixes/Partial/Related-Bug and Implements-Blueprint
> metadata headers as well. When used they should always appear
> one-per-line in the final paragraph of the commit message, but their
> relative order is unimportant.
> Jeremy Stanley
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the OpenStack-dev