[openstack-dev] git commit message: change id will before bug/bp when first commit

ZhiQiang Fan aji.zqfan at gmail.com
Mon Aug 19 02:46:46 UTC 2013


thank you


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
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>



-- 
blog: zqfan.github.com
git: github.com/zqfan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130819/7d705861/attachment.html>


More information about the OpenStack-dev mailing list