Sure thing. A few questions: the "CLOUDSTACK-<BUGID> prefix:" line, should that be changed to simply "Bug id:"? I'm assuming that if the commit is a bug fix, the fix will already be described in the summary and detail of the commit. Or are we looking for something else here other than a description? I could just see this being redundant, but perhaps I don't understand what's being asked for on that line. Should id describe the bug itself in one line, rather than the bugfix?
I'm also assuming it's ok to add the "Signed-off-by:" to the message. I realize that some people will have their own configs that already do this, or be used to using -s to auto-add it to the message, but judging by the logs it seems that the majority don't. So hopefully this doesn't upset anyone horribly :-) They can always change their copy since the hook will need to be manually installed. Attached is an example commit message generated by the hook so far. I left in the default comment message as well, simply because it includes a list of what's modified,etc for reference when typing up the notes. On Fri, Oct 12, 2012 at 2:56 AM, Rohit Yadav <rohit.ya...@citrix.com> wrote: > > I ported an old wiki from wiki.cloudstack to cwiki.a.o > https://cwiki.apache.org/confluence/display/CLOUDSTACK/Git#Git-CommitMessages > > Pl. check and edit as needed. > > One more thing, I checked looks like ASF infra guys have upgraded their > review board. > The bug > (http://code.google.com/p/reviewboard/issues/detail?id=2690&thanks=2690&ts=1343826104) > got fixed so now downloading the diff downloads the actual uploaded git > formatted patch. > > On 12-Oct-2012, at 2:42 AM, Marcus Sorensen <shadow...@gmail.com> wrote: > >> Might be cool if we could make/document git hooks for a standard message >> form. > > Marcus it's a good idea, pl. check if we can add git hooks to ASF repo that > would be great. > > Regards. > >> >> On Thu, Oct 11, 2012 at 3:05 PM, Wido den Hollander <w...@widodh.nl> wrote: >>> >>> >>> On 10/10/2012 08:50 PM, Noah Slater wrote: >>>> >>>> Perhaps we could document this on the wiki, as part of a nascent coding >>>> standards policy? >>> >>> >>> I'd say so. We already have a coding convention, it's just a small step to >>> add a commit convention. >>> >>> I personally like 'clean' GIT repos with clear commit messages. >>> >>> Wido >>> >>> >>>> >>>> On Wed, Oct 10, 2012 at 8:01 AM, Rohit Yadav <rohit.ya...@citrix.com> >>>> wrote: >>>> >>>>> Hi folks, >>>>> >>>>> With due respect, I would like to request all the committers and >>>>> contributors to write better commit message. [0] >>>>> >>>>> For example, a good commit message: >>>>> >>>>> >>>>> https://git-wip-us.apache.org/repos/asf?p=incubator-cloudstack.git;a=commit;h=384c03e42578f17432a483d5828aad64175d9c49 >>>>> >>>>> A good commit message subject should have something like this with 80 >>>>> chars width: >>>>> <Header line>: <short log description> >>>>> <blank line> >>>>> <body of commit message, explain things why, what, how, etc. giving >>>>> background> >>>>> <bulleted points help> >>>>> <blank line> >>>>> <Reported-by: if it's a bug> >>>>> <Reviewed-by: if it was reviewed> >>>>> <Signed-off: turn on signature in your .gitconfig> >>>>> >>>>> This is what we follow on >>>>> http://git.videolan.org/?p=vlmc.git;a=shortlogand they are crazy about >>>>> commits and patches, they just don't accept junk >>>>> messages, even if code is fine. You may check, there is no or few >>>>> reverts. >>>>> >>>>> When something breaks, I check all last commits and do a git log -p >>>>> <file> >>>>> to go through recent changes to a file, in case I think something broke I >>>>> like to identify the changes that may have caused it instead of fixing it >>>>> which may introduce further problems. I use tig and zsh to regularly >>>>> follow >>>>> commits and read commit messages. >>>>> >>>>> Also, please fix your editors and follow coding conventions. >>>>> >>>>> [0] https://github.com/torvalds/subsurface/blob/master/README (at the >>>>> end) >>>>> >>>>> Regards. >>>>> PS. I had to email about it as we're uncool with our git commit habits, >>>>> we >>>>> are doing triple or quadruple reverts, we need to fix our habits. >>>>> >>>>> >>>>> >>>>> https://git-wip-us.apache.org/repos/asf?p=incubator-cloudstack.git;a=commit;h=7bcbae5e91a4cd122d0efa7f2542eab73debb6df >>>>> >>>>> >>>>> https://git-wip-us.apache.org/repos/asf?p=incubator-cloudstack.git;a=commit;h=c49f3beccfcd1257eca1ea06606fb55b3fdf5093 >>>>> >>>>> >>>>> https://git-wip-us.apache.org/repos/asf?p=incubator-cloudstack.git;a=commit;h=66daa1a2bc6e86adea265a8a0b8b512756c8f77c >>>>> >>>>> >>>>> https://git-wip-us.apache.org/repos/asf?p=incubator-cloudstack.git;a=commit;h=828fa3389bbe7cd0378c4e55152d671932badca2 >>>>> >>>>> >>>>> https://git-wip-us.apache.org/repos/asf?p=incubator-cloudstack.git;a=commit;h=bb7f9ad9774019f4fdb4d72b2e32a36df9c89188 >>>>> >>>>> >>>>> https://git-wip-us.apache.org/repos/asf?p=incubator-cloudstack.git;a=commit;h=75e2a1012fccc01c639c7f41be564ac0e32088fb >>>>> >>>>> >>>>> https://git-wip-us.apache.org/repos/asf?p=incubator-cloudstack.git;a=commit;h=5078dff6e76649fbc51e2b9c003fd8e03eef18f3 >>>>> >>>>> >>>>> https://git-wip-us.apache.org/repos/asf?p=incubator-cloudstack.git;a=commit;h=850433240401cd318f1d8d8b0fa2032a60d52c1f >>>> >>>> >>>> >>>> >>>> >>> >
Summary: Detail: CLOUDSTACK-<BUGID> <PREFIX> : Reviewed-by: Reported-by: Signed-off-by: Marcus Sorensen <mar...@betterservers.com> 1350059947 -0600 # The following is an example of how to fill out the above form. Please limit # your formatting to 80 cols. # # Summary: One line description of commit, followed by blank line # # Detail: Multi-line description, followed by blank line # # CLOUDSTACK-12345 Maven: One line bugfix description # Reviewed-by: Bar Barlington <b...@example.com>, Foo McFooson <f...@example.com> # Reported-by: Baz Bazelli <b...@example.com> # Signed-off-by: You <y...@yourdomain.com> # # Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. # On branch mybranch # # Changes to be committed: # (use "git reset HEAD <file>..." to unstage) # # modified: DISCLAIMER #