Attached are a couple git hooks written in Ruby with the aim of standardizing commit messages so that we know how they're associated with redmine tickets.
- prepare-commit-msg - get the ticket number off the branch name and prepend it to the commit message - commit-msg - reject the commit unless the commit message has #ticketnum or maint: To try them out just copy them to your .git/hooks directory and make sure they're executable I know some people have mentioned that they might not like having their commits rejected, but the automation of the prepare-commit message should alleviate that and there really isn't a way to force you to use these hooks either. If people like them we can include them in the repo (somewhere like ext/git-hooks) and provide something like a rake task or git command to install them along with some documentation on the wiki. Matt -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.
commit-msg
Description: Binary data
prepare-commit-msg
Description: Binary data
