2009/3/12 Michael Mraka <[email protected]>:
> Jan Pazdziora wrote:
> % On Thu, Mar 12, 2009 at 07:27:19AM +0100, Jan Pazdziora wrote:
> % > On Wed, Mar 11, 2009 at 08:09:49PM -0700, Mike McCune wrote:
> % > > 
> <http://git.fedorahosted.org/git/?p=spacewalk.git;a=commitdiff;h=6c1be4e0cc992afb834e8fedf7c3094746466ba4>
> % > >
> % > > 'git pull --rebase' next time?
> % >
> % > It should be possible to do a post commit hook to refuse commits
> % > which introduce merges that have the default commit message (= likely
> % > not intended merge).
> % >
> % > Is this something we might want to try setting up?
> %
> % We should also be able to try to enforce the
> %
> %       ^((\d+)\s-\s)?
> %
> % format for bugzilla numbers.
>
> I agree with commit hooks. Anyway format bugzilla numbers is more complicated
> (multiple bz numbers or none).

+1 to the enforcement. Sounds like a good idea.

Agreed with Michael here that the commit message, my regex sucks but
I'll try to at least describe
it :)

\d*(,\d*) - msg

so you can have 0 or more bugzilla numbers separated by commas. The
list of bugzilla
numbers is set apart from the msg by a space hyphen space, then
followed by a commit message.
If there is no bugzilla number there should be no hyphen.

jesus

_______________________________________________
Spacewalk-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Reply via email to